From 2dc0de58249a67a255cc0b8010cf25517066cdcf Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 5 Jan 2020 17:37:28 +0100 Subject: [PATCH] - fixed incorrect sampler binding. --- source/glbackend/glbackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glbackend/glbackend.cpp b/source/glbackend/glbackend.cpp index 767542c81..6f5dcd9cd 100644 --- a/source/glbackend/glbackend.cpp +++ b/source/glbackend/glbackend.cpp @@ -359,7 +359,7 @@ void PolymostRenderState::Apply(PolymostShader* shader, GLState &oldState) reset = true; } glBindTexture(GL_TEXTURE_2D, texIds[i]); - glBindSampler(i, samplerIds[i]); + GLInterface.mSamplers->Bind(i, samplerIds[i], -1); oldState.TexId[i] = texIds[i]; oldState.SamplerId[i] = samplerIds[i]; }