gpu-gles: remove scissor test disable on fills
authornotaz <notasas@gmail.com>
Fri, 20 Jan 2012 21:47:54 +0000 (23:47 +0200)
committernotaz <notasas@gmail.com>
Fri, 20 Jan 2012 22:05:13 +0000 (00:05 +0200)
to keep borders black when centered

plugins/gpu-gles/gpuPrim.c

index e9f4ca2..2f200eb 100644 (file)
@@ -2284,7 +2284,7 @@ void primBlkFill(unsigned char * baseAddr)
      b=((GLclampf)BLUE(gpuData[0]))/255.0f;\r
      r=((GLclampf)RED(gpuData[0]))/255.0f;\r
      \r
-     glDisable(GL_SCISSOR_TEST); glError();\r
+     //glDisable(GL_SCISSOR_TEST); glError();\r
      glClearColor(r,g,b,1.0f); glError();\r
      glClear(uiBufferBits); glError();\r
      gl_z=0.0f;\r
@@ -2317,7 +2317,7 @@ void primBlkFill(unsigned char * baseAddr)
         }\r
       }\r
 \r
-     glEnable(GL_SCISSOR_TEST); glError();\r
+     //glEnable(GL_SCISSOR_TEST); glError();\r
     }\r
    else\r
     {\r
@@ -2327,9 +2327,9 @@ void primBlkFill(unsigned char * baseAddr)
      SetRenderMode((unsigned long)0x01000000, FALSE);\r
      vertex[0].c.lcol=gpuData[0]|0xff000000;\r
      SETCOL(vertex[0]); \r
-     glDisable(GL_SCISSOR_TEST); glError();\r
+     //glDisable(GL_SCISSOR_TEST); glError();\r
      PRIMdrawQuad(&vertex[0], &vertex[1], &vertex[2], &vertex[3]);\r
-     glEnable(GL_SCISSOR_TEST); glError();\r
+     //glEnable(GL_SCISSOR_TEST); glError();\r
     }\r
   }\r
 \r