summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorBranimir Ričko <[email protected]>2023-08-26 18:55:57 +0200
committerGitHub <[email protected]>2023-08-26 18:55:57 +0200
commitb27e98a428a1732b2f146770e96631aa13aec8b0 (patch)
treeb8cf9d115acdaff677c3c988d1a411c0d76117c1 /src
parent9c9fba6a6c1f23e98ecb55ed257960e94c57f765 (diff)
downloadraylib-b27e98a428a1732b2f146770e96631aa13aec8b0.tar.gz
raylib-b27e98a428a1732b2f146770e96631aa13aec8b0.zip
Fix bug where default shaders was not linking. (#3261)
Diffstat (limited to 'src')
-rw-r--r--src/rlgl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index 3756e5ac..f274931e 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -4550,6 +4550,7 @@ static void rlLoadShaderDefault(void)
#endif
#if defined(GRAPHICS_API_OPENGL_ES2)
"#version 100 \n"
+ "precision mediump float; \n" // Precision required for OpenGL ES2 (WebGL) (on some browsers)
"attribute vec3 vertexPosition; \n"
"attribute vec2 vertexTexCoord; \n"
"attribute vec4 vertexColor; \n"