mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Removed restrictions preventing sRGB and non-sRGB canvases from being used together when doing multi-canvas rendering.
This commit is contained in:
@@ -238,6 +238,16 @@ public:
|
||||
**/
|
||||
float getPointSize() const;
|
||||
|
||||
/**
|
||||
* Calls glEnable/glDisable(GL_FRAMEBUFFER_SRGB).
|
||||
**/
|
||||
void setFramebufferSRGB(bool enable);
|
||||
|
||||
/**
|
||||
* Equivalent to glIsEnabled(GL_FRAMEBUFFER_SRGB).
|
||||
**/
|
||||
bool hasFramebufferSRGB() const;
|
||||
|
||||
/**
|
||||
* Binds a Framebuffer Object to the specified target.
|
||||
**/
|
||||
@@ -360,6 +370,8 @@ private:
|
||||
|
||||
float pointSize;
|
||||
|
||||
bool framebufferSRGBEnabled;
|
||||
|
||||
GLuint defaultTexture;
|
||||
|
||||
Matrix lastProjectionMatrix;
|
||||
|
||||
Reference in New Issue
Block a user