Bug 1291083 - Explicitly make WEBGL_depth_texture formats filterable. - r=mtseng draft
authorJeff Gilbert <jgilbert@mozilla.com>
Mon, 01 Aug 2016 22:59:25 -0700
changeset 395437 6376f55af7ea00ae1202c336a8b761f6616d0d44
parent 395345 a27f5fde1962ea3063b8b8071ff617f4601e9906
child 526988 745f0586582cc0e8a16c501a3893f2c2d4aaf7cd
push id24768
push userbmo:jgilbert@mozilla.com
push dateTue, 02 Aug 2016 06:03:19 +0000
reviewersmtseng
bugs1291083
milestone50.0a1
Bug 1291083 - Explicitly make WEBGL_depth_texture formats filterable. - r=mtseng MozReview-Commit-ID: DaVpIHZZ0cI
dom/canvas/WebGLExtensionDepthTexture.cpp
--- a/dom/canvas/WebGLExtensionDepthTexture.cpp
+++ b/dom/canvas/WebGLExtensionDepthTexture.cpp
@@ -15,16 +15,17 @@ WebGLExtensionDepthTexture::WebGLExtensi
     : WebGLExtensionBase(webgl)
 {
     auto& fua = webgl->mFormatUsage;
 
     const auto fnAdd = [&fua](webgl::EffectiveFormat effFormat, GLenum unpackFormat,
                               GLenum unpackType)
     {
         auto usage = fua->EditUsage(effFormat);
+        usage->isFilterable = true;
         usage->SetRenderable();
 
         const webgl::PackingInfo pi = {unpackFormat, unpackType};
         const webgl::DriverUnpackInfo dui = {unpackFormat, unpackFormat, unpackType};
         fua->AddTexUnpack(usage, pi, dui);
 
         fua->AllowUnsizedTexFormat(pi, usage);
     };