From facf2b5e73e6e6f0883bd0303a9c426200112fab Mon Sep 17 00:00:00 2001 From: Heejin Chung Date: Fri, 12 Apr 2013 17:04:43 +0900 Subject: [PATCH] [CherryPick] Set the initial scissor box for WebGL [Title] [CherryPick] Set the initial scissor box for WebGL [Issues] TWEB-1131 [Problem] Scissor box isn't initialized. gl-get-calls.html conformance test fails. [Solution] Initialize scissor box when initializing WebGLRenderingContext Change-Id: I689add2bb17adcd3345feb96fd373e14f0748074 --- Source/WebCore/html/canvas/WebGLRenderingContext.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/WebCore/html/canvas/WebGLRenderingContext.cpp b/Source/WebCore/html/canvas/WebGLRenderingContext.cpp index f14218e..c2bcf82 100755 --- a/Source/WebCore/html/canvas/WebGLRenderingContext.cpp +++ b/Source/WebCore/html/canvas/WebGLRenderingContext.cpp @@ -525,6 +525,7 @@ void WebGLRenderingContext::initializeNewContext() m_context->reshape(canvasSize.width(), canvasSize.height()); m_context->viewport(0, 0, canvasSize.width(), canvasSize.height()); + m_context->scissor(0, 0, canvasSize.width(), canvasSize.height()); m_context->setContextLostCallback(adoptPtr(new WebGLRenderingContextLostCallback(this))); m_context->setErrorMessageCallback(adoptPtr(new WebGLRenderingContextErrorMessageCallback(this))); -- 2.7.4