Bug 1250710 - Unlock PIXEL_PACK_BUFFER. - r=jrmuizel draft
authorJeff Gilbert <jgilbert@mozilla.com>
Tue, 14 Jun 2016 09:51:41 -0700
changeset 379635 df416eb7d3c02bbc3347237ea89ad305e629acfa
parent 379634 32e3ae1382750c77ed8d42a2dc4bfe79796d0d47
child 379636 ffe8ab045881e9cbf03a29ff69ffcd63c8b87869
push id21016
push userbmo:jgilbert@mozilla.com
push dateThu, 16 Jun 2016 14:33:55 +0000
reviewersjrmuizel
bugs1250710
milestone50.0a1
Bug 1250710 - Unlock PIXEL_PACK_BUFFER. - r=jrmuizel MozReview-Commit-ID: 9rMN1ahls5O
dom/canvas/WebGL2ContextBuffers.cpp
--- a/dom/canvas/WebGL2ContextBuffers.cpp
+++ b/dom/canvas/WebGL2ContextBuffers.cpp
@@ -14,21 +14,21 @@ namespace mozilla {
 bool
 WebGL2Context::ValidateBufferTarget(GLenum target, const char* funcName)
 {
     switch (target) {
     case LOCAL_GL_ARRAY_BUFFER:
     case LOCAL_GL_COPY_READ_BUFFER:
     case LOCAL_GL_COPY_WRITE_BUFFER:
     case LOCAL_GL_ELEMENT_ARRAY_BUFFER:
+    case LOCAL_GL_PIXEL_PACK_BUFFER:
     case LOCAL_GL_TRANSFORM_FEEDBACK_BUFFER:
     case LOCAL_GL_UNIFORM_BUFFER:
         return true;
 
-    case LOCAL_GL_PIXEL_PACK_BUFFER:
     case LOCAL_GL_PIXEL_UNPACK_BUFFER:
         ErrorInvalidOperation("%s: PBOs are still under development, and are currently"
                               " disabled.",
                               funcName);
         return false;
 
     default:
         ErrorInvalidEnumInfo(funcName, target);