mirror of
https://github.com/fltk/fltk.git
synced 2026-02-05 15:59:50 +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"
|
||||
#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;\
|
||||
|
||||
Reference in New Issue
Block a user