Fixed bug 2008 - error typos in gles2 renderer
authorSam Lantinga <slouken@libsdl.org>
Sun, 04 Aug 2013 09:26:45 -0700
changeset 7571 824c6bacc5b3
parent 7570 716a36edc73c
child 7572 e3c45fdcd18d
Fixed bug 2008 - error typos in gles2 renderer Martin Gerhardy The attached patch fixes some typos in the SDL_SetError calls that are a little bit misleading.
src/render/opengles2/SDL_render_gles2.c
--- a/src/render/opengles2/SDL_render_gles2.c	Sun Aug 04 09:23:55 2013 -0700
+++ b/src/render/opengles2/SDL_render_gles2.c	Sun Aug 04 09:26:45 2013 -0700
@@ -1086,7 +1086,7 @@
     rdata->glDrawArrays(GL_POINTS, 0, count);
     SDL_stack_free(vertices);
     if (rdata->glGetError() != GL_NO_ERROR) {
-        return SDL_SetError("Failed to render lines");
+        return SDL_SetError("Failed to render points");
     }
     return 0;
 }
@@ -1160,7 +1160,7 @@
         rdata->glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
     }
     if (rdata->glGetError() != GL_NO_ERROR) {
-        return SDL_SetError("Failed to render lines");
+        return SDL_SetError("Failed to render filled rects");
     }
     return 0;
 }