Commit 48f6404d authored by Martin Schultz's avatar Martin Schultz

fixed compile error on c++ 98

parent 83b108b4
......@@ -52,6 +52,7 @@
#include <stdio.h>
#include <string>
#include <sstream>
DLLEXPORT void initOpenGLFunctions() {
int error = ogl_LoadFunctions();
......@@ -63,7 +64,10 @@ DLLEXPORT void initOpenGLFunctions() {
}
DLLEXPORT const char * getOpenGLVersion() {
std::string version;
version = std::to_string( ogl_GetMajorVersion())+"."+std::to_string(ogl_GetMinorVersion());
std::string version;
std::stringstream s;
s << ogl_GetMajorVersion() << "."<<ogl_GetMinorVersion();
version = s.str();
return version.c_str() ;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment