Skip to content

Commit

Permalink
Fix colors being too dark on non-macOS platforms
Browse files Browse the repository at this point in the history
This commit fixes the issue by explicitly requesting a sRGB-capable
default framebuffer.

Fixes #827.
  • Loading branch information
yvt committed May 6, 2019
1 parent cb82969 commit 31fb726
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Gui/SDLRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ namespace spades {
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0);
if (!r_allowSoftwareRendering)
SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1);
SDL_GL_SetAttribute(SDL_GL_FRAMEBUFFER_SRGB_CAPABLE, 1);

/* someday...
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK,

This comment has been minimized.

Copy link
@feikname

feikname May 6, 2019

Collaborator

@yvt You mixed tabs and spaces here for indentation oof

This comment has been minimized.

Copy link
@yvt

yvt May 6, 2019

Author Owner

Damn Xcode...

Expand Down

0 comments on commit 31fb726

Please sign in to comment.