diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2011-05-23 13:53:06 -0700 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2011-05-23 13:56:13 -0700 |
commit | f87bff5dd7500912b64a1abb3c76228f2da50b5d (patch) | |
tree | d65032af448989d55a421adba1f021ab7be13440 /Source/WebCore/platform/graphics | |
parent | 10b539940b83c9b7ea6a6ebcf8707d9841b4284f (diff) | |
download | external_webkit-f87bff5dd7500912b64a1abb3c76228f2da50b5d.zip external_webkit-f87bff5dd7500912b64a1abb3c76228f2da50b5d.tar.gz external_webkit-f87bff5dd7500912b64a1abb3c76228f2da50b5d.tar.bz2 |
The clip should be effective even if it is empty.
bug:4473188
Change-Id: Idc34c3132d1f9eba23c6e4944c843c9c19c4dbb8
Diffstat (limited to 'Source/WebCore/platform/graphics')
-rw-r--r-- | Source/WebCore/platform/graphics/android/ShaderProgram.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Source/WebCore/platform/graphics/android/ShaderProgram.cpp b/Source/WebCore/platform/graphics/android/ShaderProgram.cpp index 6933890..0117bc0 100644 --- a/Source/WebCore/platform/graphics/android/ShaderProgram.cpp +++ b/Source/WebCore/platform/graphics/android/ShaderProgram.cpp @@ -333,9 +333,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. |