mirror of
https://github.com/yawut/SDL.git
synced 2026-07-13 23:31:08 -05:00
Bithika Mookherjee
SDL_RenderSetClipRect() calls into renderer->UpdateClipRect(renderer).
I am not sure if UpdateClipRect() can point to a number of clip rect update functions, but on my platform it calls D3D_UpdateClipRect().
In that function, the rect to pass to IDirect3DDevice9_SetScissorRect() has it's right field set as:
r.right = rect->w + rect->w;
But actually, this should be:
r.right = rect->x + rect->w;
|
||
|---|---|---|
| .. | ||
| direct3d | ||
| opengl | ||
| opengles | ||
| opengles2 | ||
| psp | ||
| software | ||
| mmx.h | ||
| SDL_render.c | ||
| SDL_sysrender.h | ||
| SDL_yuv_mmx.c | ||
| SDL_yuv_sw_c.h | ||
| SDL_yuv_sw.c | ||