diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2012-05-02 10:10:39 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-02 11:36:36 +0200 |
commit | b17814e6ffcd048da7562d62ecad1bc38db7d980 (patch) | |
tree | 8146f16e5d7a3d518da573b07121d46a5b78cdf8 /src/corelib/io/qtemporarydir.cpp | |
parent | c73ddb0c0eed091a64b560ab6c453cf8160f4ee4 (diff) |
Allow creation of QOpenGLShaderProgram without a current context
This change prevents the qWarning() in QOpenGLFunctions from being
triggered when creating a QOpenGLShaderProgram object without a current
QOpenGLContext. This is a common case especially when the shader program
is a member variable of a class.
It now relies upon the QOpenGLShaderProgram::init() function to resolve
the GL function pointers when the shader program is first used which of
course should be done with an active context.
Change-Id: Ib7dc345593f2a70d72ef8f650151cc90001058ca
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/corelib/io/qtemporarydir.cpp')
0 files changed, 0 insertions, 0 deletions