From e17c8aeecb722a98f9cac8556cf7d49d7247a83a Mon Sep 17 00:00:00 2001 From: Teng-Hui Zhu Date: Mon, 23 May 2011 15:02:14 -0700 Subject: DO NOT MERGE: The clip should be effective even if it is empty. bug:4473188 Change-Id: Ib38b31074dbd7f4905cf8bbd6539673678669638 --- WebCore/platform/graphics/android/ShaderProgram.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'WebCore') diff --git a/WebCore/platform/graphics/android/ShaderProgram.cpp b/WebCore/platform/graphics/android/ShaderProgram.cpp index 9e0a4ab..558c118 100644 --- a/WebCore/platform/graphics/android/ShaderProgram.cpp +++ b/WebCore/platform/graphics/android/ShaderProgram.cpp @@ -332,9 +332,6 @@ void ShaderProgram::clip(const FloatRect& clip) if (clip == m_clipRect) return; - if (clip.width() == 0 && clip.height() == 0) - return; - // we should only call glScissor in this function, so that we can easily // track the current clipping rect. -- cgit v1.1