aboutsummaryrefslogtreecommitdiff
path: root/client/shaders/minimap_shader
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-05-08 20:18:29 +0200
committersfan5 <sfan5@live.de>2021-05-11 21:15:39 +0200
commit69c70dd319532f7860f211f4a527a902b0386e49 (patch)
tree7ddfab40bd2f5c0bf7e50572e494bc41bf65388c /client/shaders/minimap_shader
parent2443f1e2351d641d82597525e937792cce15be1e (diff)
downloadminetest-69c70dd319532f7860f211f4a527a902b0386e49.tar.gz
minetest-69c70dd319532f7860f211f4a527a902b0386e49.tar.bz2
minetest-69c70dd319532f7860f211f4a527a902b0386e49.zip
Fix swapped vertex colors on GLES2
Diffstat (limited to 'client/shaders/minimap_shader')
-rw-r--r--client/shaders/minimap_shader/opengl_vertex.glsl4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/shaders/minimap_shader/opengl_vertex.glsl b/client/shaders/minimap_shader/opengl_vertex.glsl
index 1a9491805..b23d27181 100644
--- a/client/shaders/minimap_shader/opengl_vertex.glsl
+++ b/client/shaders/minimap_shader/opengl_vertex.glsl
@@ -7,5 +7,9 @@ void main(void)
{
varTexCoord = inTexCoord0.st;
gl_Position = mWorldViewProj * inVertexPosition;
+#ifdef GL_ES
+ varColor = inVertexColor.bgra;
+#else
varColor = inVertexColor;
+#endif
}