From 915a7e0341756e5fa1a823c5d6811bf57e555d47 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 25 Jun 2018 01:57:28 -0400 Subject: [PATCH] gles2: Whoops, overzealous copy/paste on my part. :) --- src/render/opengles2/SDL_render_gles2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/opengles2/SDL_render_gles2.c b/src/render/opengles2/SDL_render_gles2.c index 22c76824b..a2399a7ac 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 */