diff options
Diffstat (limited to 'src/gui/kernel/qplatformopenglcontext_qpa.cpp')
-rw-r--r-- | src/gui/kernel/qplatformopenglcontext_qpa.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/gui/kernel/qplatformopenglcontext_qpa.cpp b/src/gui/kernel/qplatformopenglcontext_qpa.cpp index 7c5e8245df..33adc26482 100644 --- a/src/gui/kernel/qplatformopenglcontext_qpa.cpp +++ b/src/gui/kernel/qplatformopenglcontext_qpa.cpp @@ -1,8 +1,7 @@ /**************************************************************************** ** ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) +** Contact: http://www.qt-project.org/ ** ** This file is part of the QtGui module of the Qt Toolkit. ** @@ -35,12 +34,15 @@ ** ** ** +** ** $QT_END_LICENSE$ ** ****************************************************************************/ #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); |