Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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.
  • Loading branch information
slouken committed Aug 4, 2013
1 parent 0024ee9 commit 0ec4782aafc160682d818627742563de050273d8
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/render/opengles2/SDL_render_gles2.c
@@ -1086,7 +1086,7 @@ GLES2_RenderDrawPoints(SDL_Renderer *renderer, const SDL_FPoint *points, int cou
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 @@ GLES2_RenderFillRects(SDL_Renderer *renderer, const SDL_FRect *rects, int count)
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;
}

0 comments on commit 0ec4782

Please sign in to comment.