Skip to content

Commit b27e98a

Browse files
authored
Fix bug where default shaders was not linking. (#3261)
1 parent 9c9fba6 commit b27e98a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rlgl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4550,6 +4550,7 @@ static void rlLoadShaderDefault(void)
45504550
#endif
45514551
#if defined(GRAPHICS_API_OPENGL_ES2)
45524552
"#version 100 \n"
4553+
"precision mediump float; \n" // Precision required for OpenGL ES2 (WebGL) (on some browsers)
45534554
"attribute vec3 vertexPosition; \n"
45544555
"attribute vec2 vertexTexCoord; \n"
45554556
"attribute vec4 vertexColor; \n"

0 commit comments

Comments
 (0)