Title: [253652] trunk/Source/WebCore
- Revision
- 253652
- Author
- [email protected]
- Date
- 2019-12-17 15:17:46 -0800 (Tue, 17 Dec 2019)
Log Message
Fix WebGL conformance test build_177_to_178.html with USE_ANGLE
https://bugs.webkit.org/show_bug.cgi?id=204927
Disable ANGLE_texture_rectangle when compiling user shaders.
This mirrors a change I made to Chromium here:
https://chromium-review.googlesource.com/c/chromium/src/+/1842223
Patch by James Darpinian <[email protected]> on 2019-12-17
Reviewed by Dean Jackson.
* platform/graphics/angle/GraphicsContext3DANGLE.cpp:
(WebCore::GraphicsContext3D::compileShader):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (253651 => 253652)
--- trunk/Source/WebCore/ChangeLog 2019-12-17 23:15:54 UTC (rev 253651)
+++ trunk/Source/WebCore/ChangeLog 2019-12-17 23:17:46 UTC (rev 253652)
@@ -1,3 +1,17 @@
+2019-12-17 James Darpinian <[email protected]>
+
+ Fix WebGL conformance test build_177_to_178.html with USE_ANGLE
+ https://bugs.webkit.org/show_bug.cgi?id=204927
+
+ Disable ANGLE_texture_rectangle when compiling user shaders.
+ This mirrors a change I made to Chromium here:
+ https://chromium-review.googlesource.com/c/chromium/src/+/1842223
+
+ Reviewed by Dean Jackson.
+
+ * platform/graphics/angle/GraphicsContext3DANGLE.cpp:
+ (WebCore::GraphicsContext3D::compileShader):
+
2019-12-17 Tim Horton <[email protected]>
macCatalyst: Cursor should update on mouse movement and style change
Modified: trunk/Source/WebCore/platform/graphics/angle/GraphicsContext3DANGLE.cpp (253651 => 253652)
--- trunk/Source/WebCore/platform/graphics/angle/GraphicsContext3DANGLE.cpp 2019-12-17 23:15:54 UTC (rev 253651)
+++ trunk/Source/WebCore/platform/graphics/angle/GraphicsContext3DANGLE.cpp 2019-12-17 23:17:46 UTC (rev 253652)
@@ -814,12 +814,19 @@
{
ASSERT(shader);
makeContextCurrent();
+ // We need this extension to support IOSurface backbuffers, but we
+ // don't want it exposed to WebGL user shaders. Temporarily disable
+ // it during shader compilation.
+ gl::DisableExtensionANGLE("GL_ANGLE_texture_rectangle");
gl::CompileShader(shader);
+ gl::RequestExtensionANGLE("GL_ANGLE_texture_rectangle");
}
void GraphicsContext3D::compileShaderDirect(Platform3DObject shader)
{
- compileShader(shader);
+ ASSERT(shader);
+ makeContextCurrent();
+ gl::CompileShader(shader);
}
void GraphicsContext3D::copyTexImage2D(GC3Denum target, GC3Dint level, GC3Denum internalformat, GC3Dint x, GC3Dint y, GC3Dsizei width, GC3Dsizei height, GC3Dint border)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes