Skip to content

Commit 4786998

Browse files
committed
hello_xr: Fix shader compile on Mali driver
1 parent 52bb26e commit 4786998

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tests/hello_xr/graphicsplugin_opengles.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
namespace {
1616
constexpr float DarkSlateGray[] = {0.184313729f, 0.309803933f, 0.309803933f, 1.0f};
1717

18-
static const char* VertexShaderGlsl = R"_(
19-
#version 320 es
18+
// The version statement has come on first line.
19+
static const char* VertexShaderGlsl = R"_(#version 320 es
2020
2121
in vec3 VertexPos;
2222
in vec3 VertexColor;
@@ -31,8 +31,8 @@ static const char* VertexShaderGlsl = R"_(
3131
}
3232
)_";
3333

34-
static const char* FragmentShaderGlsl = R"_(
35-
#version 320 es
34+
// The version statement has come on first line.
35+
static const char* FragmentShaderGlsl = R"_(#version 320 es
3636
3737
in lowp vec3 PSVertexColor;
3838
out lowp vec4 FragColor;

0 commit comments

Comments
 (0)