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:
baldurk
2020-01-17 10:38:37 +00:00
parent 654acb67f5
commit e347912479
+1 -1
View File
@@ -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;