From 185498ba6d203d80ca681aa46b2d430191d5136e Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sat, 15 Feb 2020 13:49:04 -0400 Subject: [PATCH] Fix depth sample mode validation checking the wrong state. --- src/modules/graphics/opengl/Texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/opengl/Texture.cpp b/src/modules/graphics/opengl/Texture.cpp index 4d80bc5d4..b54b42eb0 100644 --- a/src/modules/graphics/opengl/Texture.cpp +++ b/src/modules/graphics/opengl/Texture.cpp @@ -521,7 +521,7 @@ love::image::ImageData *Texture::newImageData(love::image::Image *module, int sl void Texture::setSamplerState(const SamplerState &s) { - if (samplerState.depthSampleMode.hasValue && !gl.isDepthCompareSampleSupported()) + if (s.depthSampleMode.hasValue && !gl.isDepthCompareSampleSupported()) throw love::Exception("Depth comparison sampling in shaders is not supported on this system."); // Base class does common validation and assigns samplerState.