Skip to content

Commit

Permalink
render: moved opengles2 over to new interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 28, 2018
1 parent 22475bf commit c20a858
Show file tree
Hide file tree
Showing 2 changed files with 1,236 additions and 1,561 deletions.
2 changes: 2 additions & 0 deletions src/render/SDL_render.c
Expand Up @@ -497,6 +497,7 @@ PrepQueueCmdDraw(SDL_Renderer *renderer, const Uint8 r, const Uint8 g, const Uin
static SDL_RenderCommand *
PrepQueueCmdDrawSolid(SDL_Renderer *renderer, const SDL_RenderCommandType cmdtype)
{
/* !!! FIXME: drop this draw if viewport w or h is zero. */
SDL_RenderCommand *cmd = NULL;
if (PrepQueueCmdDraw(renderer, renderer->r, renderer->g, renderer->b, renderer->a) == 0) {
cmd = AllocateRenderCommand(renderer);
Expand Down Expand Up @@ -560,6 +561,7 @@ QueueCmdFillRects(SDL_Renderer *renderer, const SDL_FRect * rects, const int cou
static SDL_RenderCommand *
PrepQueueCmdDrawTexture(SDL_Renderer *renderer, SDL_Texture *texture, const SDL_RenderCommandType cmdtype)
{
/* !!! FIXME: drop this draw if viewport w or h is zero. */
SDL_RenderCommand *cmd = NULL;
if (PrepQueueCmdDraw(renderer, texture->r, texture->g, texture->b, texture->a) == 0) {
cmd = AllocateRenderCommand(renderer);
Expand Down

0 comments on commit c20a858

Please sign in to comment.