Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Fixed setting the orthographic projection when the viewport changes.
  • Loading branch information
slouken committed Jan 28, 2012
1 parent 9c4c413 commit 92034599c28e822ab19b406a3dd927f1025632f4
Showing 1 changed file with 4 additions and 3 deletions.
@@ -266,6 +266,10 @@ GLES2_UpdateViewport(SDL_Renderer * renderer)

rdata->glViewport(renderer->viewport.x, renderer->viewport.y,
renderer->viewport.w, renderer->viewport.h);

if (rdata->current_program) {
GLES2_SetOrthographicProjection(renderer);
}
return 0;
}

@@ -555,9 +559,6 @@ GLES2_SetRenderTarget(SDL_Renderer * renderer, SDL_Texture * texture)
return -1;
}
}
if (data->current_program) {
GLES2_SetOrthographicProjection(renderer);
}
return 0;
}

0 comments on commit 9203459

Please sign in to comment.