Whoops, need to actually clip to the viewport in the software renderer.
This commit is contained in:
parent
c804b92b9e
commit
2a4134c20a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue