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]
This commit is contained in:
Albrecht Schlosser
2020-08-15 13:30:11 +02:00
parent 32c316b78f
commit 5380706be7
+2 -2
View File
@@ -113,7 +113,7 @@ void initShaders(void)
#define SHADING_LANG_VERS "130" #define SHADING_LANG_VERS "130"
#endif #endif
// load shaders // 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_Position;\
in vec3 in_Color;\ in vec3 in_Color;\
out vec3 ex_Color;\ out vec3 ex_Color;\
@@ -123,7 +123,7 @@ void initShaders(void)
gl_Position = vec4(in_Position, 1.0);\ 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;\ precision highp float;\
in vec3 ex_Color;\ in vec3 ex_Color;\
out vec4 out_Color;\ out vec4 out_Color;\