diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2009-10-02 07:55:26 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2009-10-02 09:39:01 (GMT) |
commit | 46c17756dfa231d5ce7a8907330d97807880a04c (patch) | |
tree | 6f53a0e0432b4e47f691bbcb49ab7b10d2f1a924 /src/opengl/qwindowsurface_gl.cpp | |
parent | b89129e66bc1a7026ee86e01543d907ba9d47d02 (diff) | |
download | Qt-46c17756dfa231d5ce7a8907330d97807880a04c.zip Qt-46c17756dfa231d5ce7a8907330d97807880a04c.tar.gz Qt-46c17756dfa231d5ce7a8907330d97807880a04c.tar.bz2 |
Make 16-bit graphicssystem opengl work
Reviewed-by: Eskil
Diffstat (limited to 'src/opengl/qwindowsurface_gl.cpp')
-rw-r--r-- | src/opengl/qwindowsurface_gl.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/opengl/qwindowsurface_gl.cpp b/src/opengl/qwindowsurface_gl.cpp index 3a348bc..7f8577a 100644 --- a/src/opengl/qwindowsurface_gl.cpp +++ b/src/opengl/qwindowsurface_gl.cpp @@ -306,8 +306,13 @@ QGLWindowSurface::QGLWindowSurface(QWidget *window) d_ptr->pb = 0; d_ptr->fbo = 0; d_ptr->ctx = 0; +#if defined (QT_OPENGL_ES_2) + d_ptr->tried_fbo = true; + d_ptr->tried_pb = true; +#else d_ptr->tried_fbo = false; d_ptr->tried_pb = false; +#endif d_ptr->destructive_swap_buffers = qgetenv("QT_GL_SWAPBUFFER_PRESERVE").isNull(); d_ptr->glDevice.d = d_ptr; d_ptr->q_ptr = this; @@ -438,6 +443,7 @@ void QGLWindowSurface::flush(QWidget *widget, const QRegion &rgn, const QPoint & QRect rect = br.translated(-offset - wOffset); const GLenum target = GL_TEXTURE_2D; + Q_UNUSED(target); if (context()) { context()->makeCurrent(); |