Merge pull request #2851 from ReinUsesLisp/srgb

renderer_opengl: Fix sRGB blits
This commit is contained in:
Fernando Sahmkow 2019-09-15 10:38:10 -04:00 committed by GitHub
commit 393cc3ef2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 30 deletions

View file

@ -89,6 +89,9 @@ void Maxwell3D::InitializeRegisterDefaults() {
// Commercial games seem to assume this value is enabled and nouveau sets this value manually.
regs.rt_separate_frag_data = 1;
// Some games (like Super Mario Odyssey) assume that SRGB is enabled.
regs.framebuffer_srgb = 1;
}
#define DIRTY_REGS_POS(field_name) (offsetof(Maxwell3D::DirtyRegs, field_name))