Add flags to ResourceFormat to replace bgraOrder/srgbCorrected

* Allows for future expansion as well
This commit is contained in:
baldurk
2018-12-11 19:57:20 +00:00
parent 2db56c2a86
commit 2411ce70ea
25 changed files with 192 additions and 152 deletions
@@ -1790,7 +1790,7 @@ void GLPipelineStateViewer::setState()
format = tex->format.Name();
typeName = ToQStr(tex->type);
if(tex->format.srgbCorrected && !state.framebuffer.framebufferSRGB)
if(tex->format.srgbCorrected() && !state.framebuffer.framebufferSRGB)
format += lit(" (GL_FRAMEBUFFER_SRGB = 0)");
}