Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed bug 2008 - error typos in gles2 renderer
Browse files Browse the repository at this point in the history
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 0ec4782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/render/opengles2/SDL_render_gles2.c
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 0ec4782

Please sign in to comment.