Don't linear sample integer textures in GL texture rendering

* This makes the texture incomplete.
This commit is contained in:
baldurk
2019-12-18 12:51:01 +00:00
parent b123ef42a9
commit d2ac81da28
+3 -1
View File
@@ -475,8 +475,10 @@ bool GLReplay::RenderTextureInternal(TextureDisplay cfg, TexDisplayFlags flags)
TextureSamplerMode mode = TextureSamplerMode::Point;
bool intTexture = intIdx > 0 || (flags & eTexDisplay_RemapUInt) || (flags & eTexDisplay_RemapSInt);
if(cfg.subresource.mip == 0 && cfg.scale < 1.0f && dsTexMode == eGL_NONE &&
resType != RESTYPE_TEXBUFFER && resType != RESTYPE_TEXRECT)
resType != RESTYPE_TEXBUFFER && resType != RESTYPE_TEXRECT && !intTexture)
{
mode = TextureSamplerMode::Linear;
}