Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenFlipper-Free
OpenFlipper
Commits
48f6404d
Commit
48f6404d
authored
Dec 31, 2015
by
Martin Schultz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed compile error on c++ 98
parent
83b108b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
common/glew_wrappers.cc
common/glew_wrappers.cc
+6
-2
No files found.
common/glew_wrappers.cc
View file @
48f6404d
...
...
@@ -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
()
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment