Title: [274410] trunk/Source/WebCore
Revision
274410
Author
[email protected]
Date
2021-03-15 04:15:39 -0700 (Mon, 15 Mar 2021)

Log Message

REGRESSION(r270185) [GTK] Some webgl failures after multivalue setter refactor
https://bugs.webkit.org/show_bug.cgi?id=219340

Patch by Kimmo Kinnunen <[email protected]> on 2021-03-15
Reviewed by Simon Fraser.

Construct the simulated vertex attrib 0 buffer GCGLSpan with correct size -- the
pointer is GCGLfloat, so the length should be the count of floats.

No new tests, tested by the regressed tests:
fast/canvas/webgl/gl-bind-attrib-location-test.html
fast/canvas/webgl/gl-bind-attrib-mapped-names.html
webgl/1.0.3/conformance/attribs/gl-disabled-vertex-attrib.html
webgl/1.0.3/conformance/extensions/angle-instanced-arrays-out-of-bounds.html
webgl/1.0.3/conformance/programs/gl-bind-attrib-location-long-names-test.html
webgl/1.0.3/conformance/programs/gl-bind-attrib-location-test.html
webgl/1.0.3/conformance/rendering/draw-elements-out-of-bounds.html

* html/canvas/WebGLRenderingContextBase.cpp:
(WebCore::WebGLRenderingContextBase::simulateVertexAttrib0):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (274409 => 274410)


--- trunk/Source/WebCore/ChangeLog	2021-03-15 07:36:05 UTC (rev 274409)
+++ trunk/Source/WebCore/ChangeLog	2021-03-15 11:15:39 UTC (rev 274410)
@@ -1,3 +1,25 @@
+2021-03-15  Kimmo Kinnunen  <[email protected]>
+
+        REGRESSION(r270185) [GTK] Some webgl failures after multivalue setter refactor
+        https://bugs.webkit.org/show_bug.cgi?id=219340
+
+        Reviewed by Simon Fraser.
+
+        Construct the simulated vertex attrib 0 buffer GCGLSpan with correct size -- the
+        pointer is GCGLfloat, so the length should be the count of floats.
+
+        No new tests, tested by the regressed tests:
+        fast/canvas/webgl/gl-bind-attrib-location-test.html
+        fast/canvas/webgl/gl-bind-attrib-mapped-names.html
+        webgl/1.0.3/conformance/attribs/gl-disabled-vertex-attrib.html
+        webgl/1.0.3/conformance/extensions/angle-instanced-arrays-out-of-bounds.html
+        webgl/1.0.3/conformance/programs/gl-bind-attrib-location-long-names-test.html
+        webgl/1.0.3/conformance/programs/gl-bind-attrib-location-test.html
+        webgl/1.0.3/conformance/rendering/draw-elements-out-of-bounds.html
+
+        * html/canvas/WebGLRenderingContextBase.cpp:
+        (WebCore::WebGLRenderingContextBase::simulateVertexAttrib0):
+
 2021-03-13  Antoine Quint  <[email protected]>
 
         Improve coding style of CSSPropertyAnimation.cpp

Modified: trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp (274409 => 274410)


--- trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp	2021-03-15 07:36:05 UTC (rev 274409)
+++ trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp	2021-03-15 11:15:39 UTC (rev 274410)
@@ -7446,7 +7446,7 @@
         m_vertexAttrib0BufferValue[2] = attribValue.fValue[2];
         m_vertexAttrib0BufferValue[3] = attribValue.fValue[3];
         m_forceAttrib0BufferRefill = false;
-        m_context->bufferSubData(GraphicsContextGL::ARRAY_BUFFER, 0, makeGCGLSpan(bufferData.get(), bufferDataSize));
+        m_context->bufferSubData(GraphicsContextGL::ARRAY_BUFFER, 0, makeGCGLSpan(bufferData.get(), bufferSize));
     }
     m_context->vertexAttribPointer(0, 4, GraphicsContextGL::FLOAT, 0, 0, 0);
     return true;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to