Commit 915a7e0341756e5fa1a823c5d6811bf57e555d47

Ryan C. Gordon 2018-06-25T01:57:28

gles2: Whoops, overzealous copy/paste on my part. :)

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 22c7682..a2399a7 100644
--- a/src/render/opengles2/SDL_render_gles2.c
+++ b/src/render/opengles2/SDL_render_gles2.c
@@ -720,7 +720,7 @@ GLES2_TexSubImage2D(GLES2_DriverContext *data, GLenum target, GLint xoffset, GLi
     int y;
 
     if ((width == 0) || (height == 0) || (bpp == 0)) {
-        return;  /* nothing to do */
+        return 0;  /* nothing to do */
     }
 
     /* Reformat the texture data into a tightly packed array */