mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-14 14:01:06 +00:00
Fix mip display
This commit is contained in:
@@ -766,6 +766,13 @@ bool GLReplay::RenderTexture(TextureDisplay cfg)
|
||||
ubo->TextureResolutionPS.y = float(tex_y);
|
||||
ubo->TextureResolutionPS.z = float(tex_z);
|
||||
|
||||
float mipScale = float(1<<cfg.mip);
|
||||
|
||||
ubo->Scale *= mipScale;
|
||||
ubo->TextureResolutionPS.x /= mipScale;
|
||||
ubo->TextureResolutionPS.y /= mipScale;
|
||||
ubo->TextureResolutionPS.z /= mipScale;
|
||||
|
||||
ubo->OutputRes.x = DebugData.outWidth;
|
||||
ubo->OutputRes.y = DebugData.outHeight;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user