Don't enable SDL_GL_FRAMEBUFFER_SRGB_CAPABLE in Linux when creating the window, to work around a potential bug. sRGB windows are still possible even without that.

This commit is contained in:
Alex Szpakowski
2015-03-03 17:48:19 -04:00
parent 8277eb9abd
commit 06fa7bd7a4
4 changed files with 40 additions and 2 deletions
+8
View File
@@ -267,6 +267,14 @@ public:
**/
void bindTextures(GLuint first, GLsizei count, const GLuint *textures);
/**
* Helper for binding a texture to a specific texture unit.
*
* @param textureunit Index in the range of [0, maxtextureunits-1]
* @param restoreprev Restore previously bound texture unit when done.
**/
void bindTextureToUnit(GLuint texture, int textureunit, bool restoreprev);
/**
* Helper for deleting an OpenGL texture.
* Cleans up if the texture is currently bound.