Title: [270204] trunk/Source/WebCore
- Revision
- 270204
- Author
- hironori.fu...@sony.com
- Date
- 2020-11-27 12:34:50 -0800 (Fri, 27 Nov 2020)
Log Message
[WinCairo][Clang] html/canvas/WebGLDrawBuffers.cpp(77,29): error: non-constant-_expression_ cannot be narrowed from type 'WebCore::GraphicsContextGL::(anonymous enum at GraphicsContextGL.h:64:5)' to 'GCGLenum' (aka 'unsigned int') in initializer list
https://bugs.webkit.org/show_bug.cgi?id=219320
Unreviewed build fix for WinCairo clang-cl build.
* html/canvas/WebGLDrawBuffers.cpp:
(WebCore::WebGLDrawBuffers::drawBuffersWEBGL): Added static_cast<GCGLenum> for the initializer list.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (270203 => 270204)
--- trunk/Source/WebCore/ChangeLog 2020-11-27 20:07:40 UTC (rev 270203)
+++ trunk/Source/WebCore/ChangeLog 2020-11-27 20:34:50 UTC (rev 270204)
@@ -1,3 +1,13 @@
+2020-11-27 Fujii Hironori <hironori.fu...@sony.com>
+
+ [WinCairo][Clang] html/canvas/WebGLDrawBuffers.cpp(77,29): error: non-constant-_expression_ cannot be narrowed from type 'WebCore::GraphicsContextGL::(anonymous enum at GraphicsContextGL.h:64:5)' to 'GCGLenum' (aka 'unsigned int') in initializer list
+ https://bugs.webkit.org/show_bug.cgi?id=219320
+
+ Unreviewed build fix for WinCairo clang-cl build.
+
+ * html/canvas/WebGLDrawBuffers.cpp:
+ (WebCore::WebGLDrawBuffers::drawBuffersWEBGL): Added static_cast<GCGLenum> for the initializer list.
+
2020-11-27 Wenson Hsieh <wenson_hs...@apple.com>
Introduce new display list meta commands in preparation for webkit.org/b/219091
Modified: trunk/Source/WebCore/html/canvas/WebGLDrawBuffers.cpp (270203 => 270204)
--- trunk/Source/WebCore/html/canvas/WebGLDrawBuffers.cpp 2020-11-27 20:07:40 UTC (rev 270203)
+++ trunk/Source/WebCore/html/canvas/WebGLDrawBuffers.cpp 2020-11-27 20:34:50 UTC (rev 270204)
@@ -74,7 +74,7 @@
return;
}
// Because the backbuffer is simulated on all current WebKit ports, we need to change BACK to COLOR_ATTACHMENT0.
- GCGLenum value[1] { (bufs[0] == GraphicsContextGL::BACK) ? GraphicsContextGL::COLOR_ATTACHMENT0 : GraphicsContextGL::NONE };
+ GCGLenum value[1] { static_cast<GCGLenum>(bufs[0] == GraphicsContextGL::BACK ? GraphicsContextGL::COLOR_ATTACHMENT0 : GraphicsContextGL::NONE) };
m_context->graphicsContextGL()->getExtensions().drawBuffersEXT(value);
m_context->setBackDrawBuffer(bufs[0]);
} else {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes