mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 13:30:44 +00:00
Don't linear sample integer textures in GL texture rendering
* This makes the texture incomplete.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user