Bug 1250710 - Fix build on Linux. draft
authorJeff Gilbert <jgilbert@mozilla.com>
Tue, 14 Jun 2016 10:12:04 -0700
changeset 379647 ee28e0803ae6fb37276a38f2496928d871954b1a
parent 379646 cc493a995d59f7f082dad267ca3d9ef7807b3b27
child 379648 7b07bbf27aebd3e5bc7ffd7d01a0af0ff6ca7c02
push id21016
push userbmo:jgilbert@mozilla.com
push dateThu, 16 Jun 2016 14:33:55 +0000
bugs1250710
milestone50.0a1
Bug 1250710 - Fix build on Linux. MozReview-Commit-ID: B4zM8aH4sGy
dom/canvas/WebGLContextGL.cpp
--- a/dom/canvas/WebGLContextGL.cpp
+++ b/dom/canvas/WebGLContextGL.cpp
@@ -1684,17 +1684,17 @@ WebGLContext::ReadPixels(GLint x, GLint 
     const webgl::FormatInfo* srcFormat;
     if (!ValidateReadPixels(x, y, width, height, format, type, bytesAvailable,
                             &bytesPerPixel, &startOffset, &rowStride, &readX, &readY,
                             &writeX, &writeY, &rwWidth, &rwHeight, &srcFormat))
     {
         return;
     }
 
-    if (rwWidth == width && rwHeight == height) {
+    if (rwWidth == uint32_t(width) && rwHeight == uint32_t(height)) {
         // Warning: Possibly shared memory.  See bug 1225033.
         DoReadPixelsAndConvert(srcFormat, x, y, width, height, format, type, data);
         return;
     }
 
     // Read request contains out-of-bounds pixels. Unfortunately:
     // GLES 3.0.4 p194 "Obtaining Pixels from the Framebuffer":
     // "If any of these pixels lies outside of the window allocated to the current GL