mirror of
https://github.com/love2d/love.git
synced 2026-08-20 04:30:09 +02:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user