mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Don't set TextureCategory::SwapBuffer on image viewer texture
* This prevents toggling linear/gamma display because swap buffers are always interpreted as gamma.
This commit is contained in:
@@ -495,7 +495,7 @@ void ImageViewer::RefreshFile()
|
||||
rgba32_float.compByteWidth = 4;
|
||||
rgba32_float.compType = CompType::Float;
|
||||
|
||||
texDetails.creationFlags = TextureCategory::SwapBuffer | TextureCategory::ColorTarget;
|
||||
texDetails.creationFlags = TextureCategory::ShaderRead | TextureCategory::ColorTarget;
|
||||
texDetails.cubemap = false;
|
||||
texDetails.resourceId = m_TextureID;
|
||||
texDetails.byteSize = 0;
|
||||
|
||||
Reference in New Issue
Block a user