Bug 1281098 - Cache LOCAL_GL_TEXTURE_COMPARE_MODE since we need it for validation. - r=ethlin draft
authorJeff Gilbert <jgilbert@mozilla.com>
Thu, 30 Jun 2016 12:29:49 -0700
changeset 383825 74bdee23cd920593e431fd1a9aff505b9c5dd8c2
parent 383824 d44a419040c57aa81970cafa3d7576821142e7ac
child 384238 7e9c44d112f28d18bc772467ec79e164d23e145e
push id22104
push userbmo:jgilbert@mozilla.com
push dateTue, 05 Jul 2016 05:11:09 +0000
reviewersethlin
bugs1281098
milestone50.0a1
Bug 1281098 - Cache LOCAL_GL_TEXTURE_COMPARE_MODE since we need it for validation. - r=ethlin MozReview-Commit-ID: 6bboJTWuEP7
dom/canvas/WebGLTexture.cpp
--- a/dom/canvas/WebGLTexture.cpp
+++ b/dom/canvas/WebGLTexture.cpp
@@ -1018,16 +1018,20 @@ WebGLTexture::TexParameter(TexTarget tex
     case LOCAL_GL_TEXTURE_WRAP_S:
         mWrapS = intParam;
         break;
 
     case LOCAL_GL_TEXTURE_WRAP_T:
         mWrapT = intParam;
         break;
 
+    case LOCAL_GL_TEXTURE_COMPARE_MODE:
+        mTexCompareMode = intParam;
+        break;
+
     // We don't actually need to store the WRAP_R, since it doesn't change texture
     // completeness rules.
     }
 
     // Only a couple of pnames don't need to invalidate our resolve status cache.
     switch (pname) {
     case LOCAL_GL_TEXTURE_MAX_ANISOTROPY_EXT:
     case LOCAL_GL_TEXTURE_WRAP_R: