gl: #version must be on first line or Mali compiler complains

This commit is contained in:
Flyinghead 2019-11-26 11:08:35 +01:00
parent a944cd08c6
commit 554d8005fa
3 changed files with 7 additions and 14 deletions

View File

@ -285,8 +285,7 @@ void main(void)
)";
static const char* VertexShaderSource =
R"(
#version 430
R"(#version 430
in highp vec3 in_pos;

View File

@ -12,8 +12,7 @@
//Fragment and vertex shaders code
static const char* VertexShaderSource = R"(
#version 140
static const char* VertexShaderSource = R"(#version 140
#define pp_Gouraud %d
#if pp_Gouraud == 0

View File

@ -25,8 +25,7 @@
float fb_scale_x, fb_scale_y; // FIXME
//Fragment and vertex shaders code
const char* VertexShaderSource = R"(
%s
const char* VertexShaderSource = R"(%s
#define TARGET_GL %s
#define pp_Gouraud %d
@ -99,8 +98,7 @@ void main()
)";
const char* PixelPipelineShader =
R"(
%s
R"(%s
#define TARGET_GL %s
#define cp_AlphaTest %d
@ -293,8 +291,7 @@ void main()
)";
const char* ModifierVolumeShader =
R"(
%s
R"(%s
#define TARGET_GL %s
#define GLES2 0
@ -325,8 +322,7 @@ void main()
)";
const char* OSD_VertexShader =
R"(
%s
R"(%s
#define TARGET_GL %s
#define GLES2 0
@ -367,8 +363,7 @@ void main()
)";
const char* OSD_Shader =
R"(
%s
R"(%s
#define TARGET_GL %s
#define GLES2 0