Fix CLAMP_NOFILTER to GL_REPEATE

This commit is contained in:
Emile Belanger 2021-07-18 11:05:54 +01:00
parent 1183152ce2
commit fa092f9ec9

View file

@ -119,6 +119,11 @@ uint8_t FSamplerManager::Bind(int texunit, int num, int lastval)
break;
case CLAMP_NOFILTER:
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
break;
case CLAMP_NOFILTER_X:
case CLAMP_NOFILTER_Y:
case CLAMP_NOFILTER_XY: