mirror of
https://github.com/yawut/SDL.git
synced 2026-09-08 09:06:29 -05:00
Whoops, need to actually clip to the viewport in the software renderer.
This commit is contained in:
@@ -288,7 +288,7 @@ SW_UpdateViewport(SDL_Renderer * renderer)
|
||||
renderer->viewport.w = surface->w;
|
||||
renderer->viewport.h = surface->h;
|
||||
}
|
||||
//SDL_SetClipRect(data->surface, &renderer->viewport);
|
||||
SDL_SetClipRect(data->surface, &renderer->viewport);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user