gpu: Add support for scissor rectangle

This commit is contained in:
Henrik Rydgard 2013-03-15 22:24:16 +01:00
parent bef3ef7fac
commit cf458dba60
6 changed files with 27 additions and 12 deletions

View file

@ -273,10 +273,6 @@ void FramebufferManager::SetRenderFrameBuffer() {
u32 z_address = (gstate.zbptr & 0xFFE000) | ((gstate.zbwidth & 0xFF0000) << 8);
int z_stride = gstate.zbwidth & 0x3C0;
// We guess that the viewport size during the first draw call is an appropriate
// size for a render target.
//UpdateViewportAndProjection();
// Yeah this is not completely right. but it'll do for now.
//int drawing_width = ((gstate.region2) & 0x3FF) + 1;
//int drawing_height = ((gstate.region2 >> 10) & 0x3FF) + 1;