Title: [184889] trunk/Source/WebCore
Revision
184889
Author
[email protected]
Date
2015-05-26 17:18:58 -0700 (Tue, 26 May 2015)

Log Message

Enable element unsigned index in WebGL2 again.
https://bugs.webkit.org/show_bug.cgi?id=145392
<rdar://problem/21112585>.

Reviewed by Dean Jackson.

* html/canvas/WebGLRenderingContextBase.cpp:
(WebCore::WebGLRenderingContextBase::validateDrawElements):
Fix some incorrect logic that disables the feature for WebGL2.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (184888 => 184889)


--- trunk/Source/WebCore/ChangeLog	2015-05-27 00:05:52 UTC (rev 184888)
+++ trunk/Source/WebCore/ChangeLog	2015-05-27 00:18:58 UTC (rev 184889)
@@ -1,3 +1,15 @@
+2015-05-26  Roger Fong  <[email protected]>
+
+        Enable element unsigned index in WebGL2 again.
+        https://bugs.webkit.org/show_bug.cgi?id=145392
+        <rdar://problem/21112585>.
+
+        Reviewed by Dean Jackson.
+
+        * html/canvas/WebGLRenderingContextBase.cpp:
+        (WebCore::WebGLRenderingContextBase::validateDrawElements):
+        Fix some incorrect logic that disables the feature for WebGL2.
+
 2015-05-26  Chris Dumez  <[email protected]>
 
         Add assertions to make sure pages in the PageCache are not loading

Modified: trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp (184888 => 184889)


--- trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp	2015-05-27 00:05:52 UTC (rev 184888)
+++ trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp	2015-05-27 00:18:58 UTC (rev 184889)
@@ -1804,7 +1804,7 @@
     case GraphicsContext3D::UNSIGNED_SHORT:
         break;
     case GraphicsContext3D::UNSIGNED_INT:
-        if (m_oesElementIndexUint && !isWebGL2())
+        if (m_oesElementIndexUint || isWebGL2())
             break;
         synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "invalid type");
         return false;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to