summaryrefslogtreecommitdiff
path: root/examples/OpenGL3-glut-test.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2020-08-15 13:30:11 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-08-15 13:30:11 +0200
commit5380706be71cb539789db88aea3d1f457e7b0698 (patch)
tree4798f548948f3df4fba1f62186e519db7e8a3b87 /examples/OpenGL3-glut-test.cxx
parent32c316b78fd0b7ca5e6dbb49226d3475bd118c8c (diff)
Fix compiler warning in example [-Wliteral-suffix]
[gcc] warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
Diffstat (limited to 'examples/OpenGL3-glut-test.cxx')
-rw-r--r--examples/OpenGL3-glut-test.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/OpenGL3-glut-test.cxx b/examples/OpenGL3-glut-test.cxx
index 4688cde79..81a22c211 100644
--- a/examples/OpenGL3-glut-test.cxx
+++ b/examples/OpenGL3-glut-test.cxx
@@ -113,7 +113,7 @@ void initShaders(void)
#define SHADING_LANG_VERS "130"
#endif
// load shaders
- const char *vv = "#version "SHADING_LANG_VERS"\n\
+ const char *vv = "#version " SHADING_LANG_VERS "\n\
in vec3 in_Position;\
in vec3 in_Color;\
out vec3 ex_Color;\
@@ -123,7 +123,7 @@ void initShaders(void)
gl_Position = vec4(in_Position, 1.0);\
}";
- const char *ff = "#version "SHADING_LANG_VERS"\n\
+ const char *ff = "#version " SHADING_LANG_VERS "\n\
precision highp float;\
in vec3 ex_Color;\
out vec4 out_Color;\