Index: Source/core/html/canvas/WebGLRenderingContextBase.cpp |
diff --git a/Source/core/html/canvas/WebGLRenderingContextBase.cpp b/Source/core/html/canvas/WebGLRenderingContextBase.cpp |
index 674db7b1393242504ed1bc235aac9ab6ae1f921b..58681c78ebfed64221a3d5a2131a39492b989ce0 100644 |
--- a/Source/core/html/canvas/WebGLRenderingContextBase.cpp |
+++ b/Source/core/html/canvas/WebGLRenderingContextBase.cpp |
@@ -69,6 +69,7 @@ |
#include "core/html/canvas/WebGLShaderPrecisionFormat.h" |
#include "core/html/canvas/WebGLTexture.h" |
#include "core/html/canvas/WebGLUniformLocation.h" |
+#include "core/inspector/ConsoleMessage.h" |
#include "core/inspector/InspectorInstrumentation.h" |
#include "core/loader/FrameLoader.h" |
#include "core/loader/FrameLoaderClient.h" |
@@ -5062,7 +5063,7 @@ void WebGLRenderingContextBase::printWarningToConsole(const String& message) |
{ |
if (!canvas()) |
return; |
- canvas()->document().addConsoleMessage(RenderingMessageSource, WarningMessageLevel, message); |
+ canvas()->document().addConsoleMessage(ConsoleMessage::create(RenderingMessageSource, WarningMessageLevel, message)); |
} |
bool WebGLRenderingContextBase::validateFramebufferFuncParameters(const char* functionName, GLenum target, GLenum attachment) |