mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Fixed bug 3174 - SDL_SetRenderTarget clip rect
Marcel Bakker In SDL_SetRenderTarget(), i think the intended behavior was to clear the clip rect when a new target is set.
This commit is contained in:
parent
f4b26cd8e0
commit
67901f537c
@ -1106,6 +1106,8 @@ SDL_SetRenderTarget(SDL_Renderer *renderer, SDL_Texture *texture)
|
|||||||
renderer->viewport.y = 0;
|
renderer->viewport.y = 0;
|
||||||
renderer->viewport.w = texture->w;
|
renderer->viewport.w = texture->w;
|
||||||
renderer->viewport.h = texture->h;
|
renderer->viewport.h = texture->h;
|
||||||
|
SDL_zero(renderer->clip_rect);
|
||||||
|
renderer->clipping_enabled = SDL_FALSE;
|
||||||
renderer->scale.x = 1.0f;
|
renderer->scale.x = 1.0f;
|
||||||
renderer->scale.y = 1.0f;
|
renderer->scale.y = 1.0f;
|
||||||
renderer->logical_w = texture->w;
|
renderer->logical_w = texture->w;
|
||||||
|
Loading…
Reference in New Issue
Block a user