From: notaz Date: Fri, 20 Jan 2012 21:47:54 +0000 (+0200) Subject: gpu-gles: remove scissor test disable on fills X-Git-Tag: r14~15 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edee4a7fc46dd881c2a45d14ce569fbfd8336516;p=pcsx_rearmed.git gpu-gles: remove scissor test disable on fills to keep borders black when centered --- diff --git a/plugins/gpu-gles/gpuPrim.c b/plugins/gpu-gles/gpuPrim.c index e9f4ca29..2f200ebf 100644 --- a/plugins/gpu-gles/gpuPrim.c +++ b/plugins/gpu-gles/gpuPrim.c @@ -2284,7 +2284,7 @@ void primBlkFill(unsigned char * baseAddr) b=((GLclampf)BLUE(gpuData[0]))/255.0f; r=((GLclampf)RED(gpuData[0]))/255.0f; - glDisable(GL_SCISSOR_TEST); glError(); + //glDisable(GL_SCISSOR_TEST); glError(); glClearColor(r,g,b,1.0f); glError(); glClear(uiBufferBits); glError(); gl_z=0.0f; @@ -2317,7 +2317,7 @@ void primBlkFill(unsigned char * baseAddr) } } - glEnable(GL_SCISSOR_TEST); glError(); + //glEnable(GL_SCISSOR_TEST); glError(); } else { @@ -2327,9 +2327,9 @@ void primBlkFill(unsigned char * baseAddr) SetRenderMode((unsigned long)0x01000000, FALSE); vertex[0].c.lcol=gpuData[0]|0xff000000; SETCOL(vertex[0]); - glDisable(GL_SCISSOR_TEST); glError(); + //glDisable(GL_SCISSOR_TEST); glError(); PRIMdrawQuad(&vertex[0], &vertex[1], &vertex[2], &vertex[3]); - glEnable(GL_SCISSOR_TEST); glError(); + //glEnable(GL_SCISSOR_TEST); glError(); } }