Prechádzať zdrojové kódy

Fix depth sample mode validation checking the wrong state.

Alex Szpakowski 5 rokov pred
rodič
commit
185498ba6d
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/modules/graphics/opengl/Texture.cpp

+ 1 - 1
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.