gfx/angle/angle-enforce-readpixels-spec.patch
author Gregory Szorc <gps@mozilla.com>
Wed, 28 Jan 2015 13:37:00 -0800
branchGECKO130_2012052216_RELBRANCH
changeset 120190 df767e45028f7981d7d62626401ab5290b021fd2
parent 90555 ecab589f11f677bb230e4c6ef24cfae1457df86a
child 95035 7aa6a96404c08bc6272de85a243f0c9aa5b694a0
permissions -rw-r--r--
Close old release branch GECKO130_2012052216_RELBRANCH

From: Jeff Gilbert <jgilbert@mozilla.com>
Bug 724476 - ANGLE Bug 293 - Enforce readPixels format/type semantics

diff --git a/gfx/angle/src/libGLESv2/libGLESv2.cpp b/gfx/angle/src/libGLESv2/libGLESv2.cpp
--- a/gfx/angle/src/libGLESv2/libGLESv2.cpp
+++ b/gfx/angle/src/libGLESv2/libGLESv2.cpp
@@ -98,27 +98,16 @@ bool validReadFormatType(GLenum format, 
         switch (type)
         {
           case GL_UNSIGNED_BYTE:
             break;
           default:
             return false;
         }
         break;
-      case GL_BGRA_EXT:
-        switch (type)
-        {
-          case GL_UNSIGNED_BYTE:
-          case GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT:
-          case GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT:
-            break;
-          default:
-            return false;
-        }
-        break;
       case gl::IMPLEMENTATION_COLOR_READ_FORMAT:
         switch (type)
         {
           case gl::IMPLEMENTATION_COLOR_READ_TYPE:
             break;
           default:
             return false;
         }