diff options
author | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2010-02-12 15:53:40 (GMT) |
---|---|---|
committer | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2010-02-12 15:56:24 (GMT) |
commit | 040151b51780084f3a2b764bab7e2359677eb0b1 (patch) | |
tree | c251bb56b21d1a42f0a41dbed4694ff06b6f084b /src/opengl/qglframebufferobject_p.h | |
parent | e5ee4c3c8a621c24117f004f4c137f8a531d7ea4 (diff) | |
download | Qt-040151b51780084f3a2b764bab7e2359677eb0b1.zip Qt-040151b51780084f3a2b764bab7e2359677eb0b1.tar.gz Qt-040151b51780084f3a2b764bab7e2359677eb0b1.tar.bz2 |
Moved 'hasAlpha' property from GL2 engine to GL paint device.
Got rid of an ugly switch statement.
Reviewed-by: Tom
Diffstat (limited to 'src/opengl/qglframebufferobject_p.h')
-rw-r--r-- | src/opengl/qglframebufferobject_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/opengl/qglframebufferobject_p.h b/src/opengl/qglframebufferobject_p.h index d7f96a5..d8ff012 100644 --- a/src/opengl/qglframebufferobject_p.h +++ b/src/opengl/qglframebufferobject_p.h @@ -111,14 +111,16 @@ public: virtual QSize size() const {return fbo->size();} virtual QGLContext* context() const; virtual QGLFormat format() const {return fboFormat;} + virtual bool alphaRequested() const { return reqAlpha; } void setFBO(QGLFramebufferObject* f, QGLFramebufferObject::Attachment attachment); private: - bool wasBound; QGLFramebufferObject* fbo; QGLFormat fboFormat; + bool wasBound; + bool reqAlpha; }; class QGLFramebufferObjectPrivate |