Changeset 651 for trunk/src/opengl/qglframebufferobject.cpp
- Timestamp:
- Mar 8, 2010, 12:52:58 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.2 (added) merged: 650 /branches/vendor/nokia/qt/current merged: 649 /branches/vendor/nokia/qt/4.6.1 removed
- Property svn:mergeinfo changed
-
trunk/src/opengl/qglframebufferobject.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 397 397 fbo_guard.setContext(ctx); 398 398 399 bool ext_detected = (QGLExtensions::glExtensions & QGLExtensions::FramebufferObject);399 bool ext_detected = (QGLExtensions::glExtensions() & QGLExtensions::FramebufferObject); 400 400 if (!ext_detected || (ext_detected && !qt_resolve_framebufferobject_extensions(ctx))) 401 401 return; … … 467 467 468 468 if (attachment == QGLFramebufferObject::CombinedDepthStencil 469 && (QGLExtensions::glExtensions & QGLExtensions::PackedDepthStencil)) {469 && (QGLExtensions::glExtensions() & QGLExtensions::PackedDepthStencil)) { 470 470 // depth and stencil buffer needs another extension 471 471 glGenRenderbuffers(1, &depth_stencil_buffer); … … 1029 1029 bool QGLFramebufferObject::hasOpenGLFramebufferObjects() 1030 1030 { 1031 QGLExtensions::init(); 1032 return (QGLExtensions::glExtensions & QGLExtensions::FramebufferObject); 1031 return (QGLExtensions::glExtensions() & QGLExtensions::FramebufferObject); 1033 1032 } 1034 1033 … … 1189 1188 bool QGLFramebufferObject::hasOpenGLFramebufferBlit() 1190 1189 { 1191 QGLExtensions::init(); 1192 return (QGLExtensions::glExtensions & QGLExtensions::FramebufferBlit); 1190 return (QGLExtensions::glExtensions() & QGLExtensions::FramebufferBlit); 1193 1191 } 1194 1192 … … 1230 1228 GLenum filter) 1231 1229 { 1232 if (!(QGLExtensions::glExtensions & QGLExtensions::FramebufferBlit))1230 if (!(QGLExtensions::glExtensions() & QGLExtensions::FramebufferBlit)) 1233 1231 return; 1234 1232
Note:
See TracChangeset
for help on using the changeset viewer.