Ignore:
Timestamp:
Mar 8, 2010, 12:52:58 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.2 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/opengl/qglframebufferobject.cpp

    r561 r651  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    397397    fbo_guard.setContext(ctx);
    398398
    399     bool ext_detected = (QGLExtensions::glExtensions & QGLExtensions::FramebufferObject);
     399    bool ext_detected = (QGLExtensions::glExtensions() & QGLExtensions::FramebufferObject);
    400400    if (!ext_detected || (ext_detected && !qt_resolve_framebufferobject_extensions(ctx)))
    401401        return;
     
    467467
    468468    if (attachment == QGLFramebufferObject::CombinedDepthStencil
    469         && (QGLExtensions::glExtensions & QGLExtensions::PackedDepthStencil)) {
     469        && (QGLExtensions::glExtensions() & QGLExtensions::PackedDepthStencil)) {
    470470        // depth and stencil buffer needs another extension
    471471        glGenRenderbuffers(1, &depth_stencil_buffer);
     
    10291029bool QGLFramebufferObject::hasOpenGLFramebufferObjects()
    10301030{
    1031     QGLExtensions::init();
    1032     return (QGLExtensions::glExtensions & QGLExtensions::FramebufferObject);
     1031    return (QGLExtensions::glExtensions() & QGLExtensions::FramebufferObject);
    10331032}
    10341033
     
    11891188bool QGLFramebufferObject::hasOpenGLFramebufferBlit()
    11901189{
    1191     QGLExtensions::init();
    1192     return (QGLExtensions::glExtensions & QGLExtensions::FramebufferBlit);
     1190    return (QGLExtensions::glExtensions() & QGLExtensions::FramebufferBlit);
    11931191}
    11941192
     
    12301228                                           GLenum filter)
    12311229{
    1232     if (!(QGLExtensions::glExtensions & QGLExtensions::FramebufferBlit))
     1230    if (!(QGLExtensions::glExtensions() & QGLExtensions::FramebufferBlit))
    12331231        return;
    12341232
Note: See TracChangeset for help on using the changeset viewer.