Skip to content
This repository has been archived by the owner on May 27, 2023. It is now read-only.

Support non-SRGB capable GLX visuals #20

Open
quyse opened this issue Apr 1, 2016 · 0 comments
Open

Support non-SRGB capable GLX visuals #20

quyse opened this issue Apr 1, 2016 · 0 comments

Comments

@quyse
Copy link
Owner

quyse commented Apr 1, 2016

In commit 194aeb9 I had to remove SDL_GL_FRAMEBUFFER_SRGB_CAPABLE flag, as it was causing problems. It works without it, i.e. on all systems I have access to (Intel, AMD and NVidia graphics) the engine actually gets sRGB-capable framebuffer. Presumably there're sRGB-incapable systems however, so it would be good to properly abstract from this, by:

  • checking if we actually got sRGB-capable framebuffer;
  • adding gamma conversion shader function, doing nothing in case of hardware support for gamma conversion.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant