This repository has been archived by the owner. It is now read-only.
Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug 1622 - SDL_RenderSetViewport with empty SDL_Rect raises wro…
…ng error for OpenGL rendering backend It's now legal to set an empty viewport rect - it will prevent any rendering. Also added an API to query the output size: SDL_GetRendererOutputSize()
- Loading branch information
Showing with 103 additions and 64 deletions.
- +6 −0 include/SDL_render.h
- +23 −17 src/render/SDL_render.c
- +1 −0 src/render/SDL_sysrender.h
- +19 −17 src/render/direct3d/SDL_render_d3d.c
- +14 −17 src/render/opengl/SDL_render_gl.c
- +8 −6 src/render/opengles/SDL_render_gles.c
- +4 −0 src/render/opengles2/SDL_render_gles2.c
- +28 −7 src/render/software/SDL_render_sw.c