Commit 8a15a738f33f4cf1684d01e8b777e8b58fe393a5

Sam Lantinga 2022-09-15T06:21:19

Fixed uninitialized variable warning

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/render/opengles2/SDL_render_gles2.c b/src/render/opengles2/SDL_render_gles2.c
index 492a0c1..29b050d 100644
--- a/src/render/opengles2/SDL_render_gles2.c
+++ b/src/render/opengles2/SDL_render_gles2.c
@@ -493,7 +493,7 @@ GLES2_CacheProgram(GLES2_RenderData *data, GLuint vertex, GLuint fragment)
 static GLuint
 GLES2_CacheShader(GLES2_RenderData *data, GLES2_ShaderType type, GLenum shader_type)
 {
-    GLuint id;
+    GLuint id = 0;
     GLint compileSuccessful = GL_FALSE;
     int attempt, num_src;
     const GLchar *shader_src_list[2];