[BlackBerry] GL scissor test is accidentally turned off
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Aug 2012 15:28:57 +0000 (15:28 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Aug 2012 15:28:57 +0000 (15:28 +0000)
https://bugs.webkit.org/show_bug.cgi?id=93360
PR #161020

Patch by Robin Cao <robin.cao@torchmobile.com.cn> on 2012-08-07
Reviewed by Antonio Gomes.

The GL scissor test is accidentally turned off inside drawTextures().
This is wrong and should be removed.

* platform/graphics/blackberry/LayerCompositingThread.cpp:
(WebCore::LayerCompositingThread::drawTextures):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@124892 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/blackberry/LayerCompositingThread.cpp

index b365b23..90ae413 100644 (file)
@@ -1,3 +1,17 @@
+2012-08-07  Robin Cao  <robin.cao@torchmobile.com.cn>
+
+        [BlackBerry] GL scissor test is accidentally turned off
+        https://bugs.webkit.org/show_bug.cgi?id=93360
+        PR #161020
+
+        Reviewed by Antonio Gomes.
+
+        The GL scissor test is accidentally turned off inside drawTextures().
+        This is wrong and should be removed.
+
+        * platform/graphics/blackberry/LayerCompositingThread.cpp:
+        (WebCore::LayerCompositingThread::drawTextures):
+
 2012-08-07  Abhishek Arya  <inferno@chromium.org>
 
         Crash in InlineFlowBox::deleteLine.
index 81c9180..7ac66eb 100644 (file)
@@ -269,7 +269,6 @@ void LayerCompositingThread::drawTextures(double scale, int positionLocation, in
         m_layerRenderer->addLayerToReleaseTextureResourcesList(this);
         pthread_mutex_lock(m_frontBufferLock);
 
-        glDisable(GL_SCISSOR_TEST);
         glBindTexture(GL_TEXTURE_2D, m_texID);
         glVertexAttribPointer(positionLocation, 2, GL_FLOAT, GL_FALSE, 0, &m_transformedBounds);
         float upsideDown[4 * 2] = { 0, 1,  0, 0,  1, 0,  1, 1 };