sdl2_frt/src/render
Sam Lantinga 77305d47c2 Fixed bug 3345 - SDL_RenderClear inconsistency with ClipRect
Simon Hug

The description of the SDL_RenderClear function in the SDL_render.h header says the following:

"This function clears the entire rendering target, ignoring the viewport."

The word "entire" implies that the clipping rectangle set with SDL_RenderSetClipRect also gets ignored. This is left somewhat ambiguous if only the viewport is mentioned. Minor thing, but let's see what the implementations actually do.

The software renderer ignores the clipping rectangle when clearing. It even has a comment on this: /* By definition the clear ignores the clip rect */

Most other render drivers (opengl, opengles, opengles2, direct3d, and psp [I assume. Can't test it.]) use the scissor test for the ClipRect and don't disable it when clearing. Clearing will only happen within the clipping rectangle for these drivers.

An exception is direct3d11 which uses a clear function that ignores the scissor test.
2016-10-01 11:46:32 -07:00
..
direct3d Fixed bug 3345 - SDL_RenderClear inconsistency with ClipRect 2016-10-01 11:46:32 -07:00
direct3d11 Fixed bug 3336 - Failure to build with MinGW-w64 2016-10-01 10:28:00 -07:00
opengl Fixed bug 3345 - SDL_RenderClear inconsistency with ClipRect 2016-10-01 11:46:32 -07:00
opengles Fixed bug 3345 - SDL_RenderClear inconsistency with ClipRect 2016-10-01 11:46:32 -07:00
opengles2 Fixed bug 3345 - SDL_RenderClear inconsistency with ClipRect 2016-10-01 11:46:32 -07:00
psp PSP: Fixed returning success from unsupported SDL_RenderReadPixels(). 2016-04-01 21:13:58 +02:00
software Fixed spacing 2016-09-13 18:44:28 -07:00
mmx.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_d3dmath.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_d3dmath.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_render.c Fixed compile warnings about type conversion. 2016-01-16 21:25:10 +01:00
SDL_sysrender.h SDL_RenderSetIntegerScale 2016-01-05 16:39:18 -05:00
SDL_yuv_mmx.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_yuv_sw_c.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_yuv_sw.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00