summaryrefslogtreecommitdiff
path: root/client/shaders/default_shader
diff options
context:
space:
mode:
Diffstat (limited to 'client/shaders/default_shader')
-rw-r--r--client/shaders/default_shader/opengl_vertex.glsl4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/shaders/default_shader/opengl_vertex.glsl b/client/shaders/default_shader/opengl_vertex.glsl
index d95a3c2d3..a908ac953 100644
--- a/client/shaders/default_shader/opengl_vertex.glsl
+++ b/client/shaders/default_shader/opengl_vertex.glsl
@@ -3,5 +3,9 @@ varying lowp vec4 varColor;
void main(void)
{
gl_Position = mWorldViewProj * inVertexPosition;
+#ifdef GL_ES
+ varColor = inVertexColor.bgra;
+#else
varColor = inVertexColor;
+#endif
}