Removed restrictions preventing sRGB and non-sRGB canvases from being used together when doing multi-canvas rendering.

This commit is contained in:
Alex Szpakowski
2015-04-25 21:32:10 -03:00
parent 5c49898cdf
commit 33e1d2736d
4 changed files with 68 additions and 37 deletions
+12
View File
@@ -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;