diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2012-01-26 11:44:05 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-27 10:58:32 +0100 |
commit | 2d39471897f0a3a769406ec9c2b39558ebd45af3 (patch) | |
tree | 8c417f4ba814e9dbe70e56bdbf8a13cc46b3827f /src/gui/kernel/qplatformopenglcontext_qpa.cpp | |
parent | 365b5f7a9271e5fc503b10e6c17371d76643fc94 (diff) |
Introduced QOpenGLContext::defaultFramebufferObject().
Also add some debugging helpers to make sure applications are correctly
written even on less restrictive platforms.
Change-Id: Ie92e497c32e07b2b83662f7ab5540d8f37777fd0
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/gui/kernel/qplatformopenglcontext_qpa.cpp')
-rw-r--r-- | src/gui/kernel/qplatformopenglcontext_qpa.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformopenglcontext_qpa.cpp b/src/gui/kernel/qplatformopenglcontext_qpa.cpp index ba7a75a6b8..244556b13b 100644 --- a/src/gui/kernel/qplatformopenglcontext_qpa.cpp +++ b/src/gui/kernel/qplatformopenglcontext_qpa.cpp @@ -41,6 +41,8 @@ #include "qplatformopenglcontext_qpa.h" +#include <QOpenGLFunctions> + QT_BEGIN_NAMESPACE /*! @@ -94,6 +96,16 @@ QPlatformOpenGLContext::~QPlatformOpenGLContext() { } +/*! + Reimplement in subclass if your platform uses framebuffer objects for surfaces. + + The default implementation returns 0. +*/ +GLuint QPlatformOpenGLContext::defaultFramebufferObject(QPlatformSurface *) const +{ + return 0; +} + QOpenGLContext *QPlatformOpenGLContext::context() const { Q_D(const QPlatformOpenGLContext); |