2011-01-07 Zhenyao Mo <zmo@google.com>
authorzmo@google.com <zmo@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Jan 2011 18:52:53 +0000 (18:52 +0000)
committerzmo@google.com <zmo@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Jan 2011 18:52:53 +0000 (18:52 +0000)
        Unreviewed, build fix.

        * html/canvas/WebGLRenderingContext.cpp:
        (WebCore::WebGLRenderingContext::copyTexSubImage2D):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@75254 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/html/canvas/WebGLRenderingContext.cpp

index 3e3dc32..7b09a98 100644 (file)
@@ -1,3 +1,10 @@
+2011-01-07  Zhenyao Mo  <zmo@google.com>
+
+        Unreviewed, build fix.
+
+        * html/canvas/WebGLRenderingContext.cpp:
+        (WebCore::WebGLRenderingContext::copyTexSubImage2D):
+
 2011-01-06  Zhenyao Mo  <zmo@google.com>
 
         Reviewed by Kenneth Russell.
index 206b1b2..1330b1f 100644 (file)
@@ -750,8 +750,8 @@ void WebGLRenderingContext::copyTexSubImage2D(unsigned long target, long level,
         if (clip2D(x, y, width, height, getBoundFramebufferWidth(), getBoundFramebufferHeight(), &clippedX, &clippedY, &clippedWidth, &clippedHeight)) {
             unsigned long format = tex->getInternalFormat(target, level);
             unsigned long type = tex->getType(target, level);
-            unsigned long componentsPerPixel = 0;
-            unsigned long bytesPerComponent = 0;
+            unsigned int componentsPerPixel = 0;
+            unsigned int bytesPerComponent = 0;
             bool valid = m_context->computeFormatAndTypeParameters(format, type, &componentsPerPixel, &bytesPerComponent);
             if (!valid) {
                 m_context->synthesizeGLError(GraphicsContext3D::INVALID_OPERATION);