2011-04-11 Vangelis Kokkevis <vangelis@chromium.org>
[WebKit-https.git] / Source / WebCore / platform / graphics / chromium / ContentLayerChromium.cpp
index 4ea9c92..b9bfc60 100644 (file)
@@ -192,6 +192,9 @@ void ContentLayerChromium::updateTexture(const uint8_t* pixels, const IntSize& s
     if (!m_contentsTexture->isValid(size, GraphicsContext3D::RGBA))
         m_uploadUpdateRect = IntRect(IntPoint(0, 0), size);
 
+    if (m_uploadUpdateRect.isEmpty())
+        return;
+
     if (!m_contentsTexture->reserve(size, GraphicsContext3D::RGBA)) {
         m_skipsDraw = true;
         return;