mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Fix depth sample mode validation checking the wrong state.
This commit is contained in:
@@ -521,7 +521,7 @@ love::image::ImageData *Texture::newImageData(love::image::Image *module, int sl
|
|||||||
|
|
||||||
void Texture::setSamplerState(const SamplerState &s)
|
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.");
|
throw love::Exception("Depth comparison sampling in shaders is not supported on this system.");
|
||||||
|
|
||||||
// Base class does common validation and assigns samplerState.
|
// Base class does common validation and assigns samplerState.
|
||||||
|
|||||||
Reference in New Issue
Block a user