From: Heejin Chung Date: Fri, 12 Apr 2013 08:04:43 +0000 (+0900) Subject: [CherryPick] Set the initial scissor box for WebGL X-Git-Tag: 2.1_release~96 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=facf2b5e73e6e6f0883bd0303a9c426200112fab;p=framework%2Fweb%2Fwebkit-efl.git [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 --- 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)));