- fixed incorrect sampler binding.

This commit is contained in:
Christoph Oelckers 2020-01-05 17:37:28 +01:00
parent 9e7f91b5ac
commit 2dc0de5824

View file

@ -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];
}