Skip to content

Commit 9cf1ca6

Browse files
authored
Merge pull request #310 from Wallbraker/jakob/hello_xr-fix-shaders
hello_xr: Fix shader compile on Mali driver
2 parents 1bafde7 + 78fd53e commit 9cf1ca6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
hello_xr: Fix shader compile on Mali driver

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)