_unit0Sampler should be set only for binding 0

This commit is contained in:
gdk 2022-04-11 18:21:03 -03:00 committed by riperiperi
parent dd915ae67b
commit d6b1ba09bc

View file

@ -1192,7 +1192,11 @@ namespace Ryujinx.Graphics.OpenGL
Sampler glSampler = (Sampler)sampler;
glSampler?.Bind(binding);
_unit0Sampler = glSampler;
if (binding == 0)
{
_unit0Sampler = glSampler;
}
}