소스 검색

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

Ryan C. Gordon 7 년 전
부모
커밋
915a7e0341
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/render/opengles2/SDL_render_gles2.c

+ 1 - 1
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 */