mirror of
https://github.com/fltk/fltk.git
synced 2026-05-27 10:57:58 +08:00
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:
@@ -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;\
|
||||||
|
|||||||
Reference in New Issue
Block a user