Fixed bug 2008 - error typos in gles2 renderer
authorSam Lantinga <slouken@libsdl.org>
Sun, 04 Aug 2013 09:26:45 -0700
changeset 7571824c6bacc5b3
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
     1.1 --- a/src/render/opengles2/SDL_render_gles2.c	Sun Aug 04 09:23:55 2013 -0700
     1.2 +++ b/src/render/opengles2/SDL_render_gles2.c	Sun Aug 04 09:26:45 2013 -0700
     1.3 @@ -1086,7 +1086,7 @@
     1.4      rdata->glDrawArrays(GL_POINTS, 0, count);
     1.5      SDL_stack_free(vertices);
     1.6      if (rdata->glGetError() != GL_NO_ERROR) {
     1.7 -        return SDL_SetError("Failed to render lines");
     1.8 +        return SDL_SetError("Failed to render points");
     1.9      }
    1.10      return 0;
    1.11  }
    1.12 @@ -1160,7 +1160,7 @@
    1.13          rdata->glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
    1.14      }
    1.15      if (rdata->glGetError() != GL_NO_ERROR) {
    1.16 -        return SDL_SetError("Failed to render lines");
    1.17 +        return SDL_SetError("Failed to render filled rects");
    1.18      }
    1.19      return 0;
    1.20  }