From 69c70dd319532f7860f211f4a527a902b0386e49 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sat, 8 May 2021 20:18:29 +0200 Subject: Fix swapped vertex colors on GLES2 --- client/shaders/selection_shader/opengl_vertex.glsl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'client/shaders/selection_shader') diff --git a/client/shaders/selection_shader/opengl_vertex.glsl b/client/shaders/selection_shader/opengl_vertex.glsl index 9ca87a9cf..39dde3056 100644 --- a/client/shaders/selection_shader/opengl_vertex.glsl +++ b/client/shaders/selection_shader/opengl_vertex.glsl @@ -6,5 +6,9 @@ void main(void) varTexCoord = inTexCoord0.st; gl_Position = mWorldViewProj * inVertexPosition; +#ifdef GL_ES + varColor = inVertexColor.bgra; +#else varColor = inVertexColor; +#endif } -- cgit v1.2.3