Bug 1281098 - Cache LOCAL_GL_TEXTURE_COMPARE_MODE since we need it for validation. - r=ethlin
authorJeff Gilbert <jgilbert@mozilla.com>
Thu, 30 Jun 2016 12:29:49 -0700
changeset 346141 27174fcdff4c77b7c6f8bfffed95a553f49040f8
parent 346140 67394a97b3cf34fb5dd041b3cd3093c0ed7a52c7
child 346142 57118eba003d0f657e218fee786fa3d4cdd2c930
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersethlin
bugs1281098
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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: