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/qglpixelbuffer_win.cpp

    r561 r651  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 20 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    222222    if ((f.redBufferSize() > 8 || f.greenBufferSize() > 8
    223223         || f.blueBufferSize() > 8 || f.alphaBufferSize() > 8)
    224         && (QGLExtensions::glExtensions & QGLExtensions::NVFloatBuffer))
     224        && (QGLExtensions::glExtensions & QGLExtensions::NVFloatBuffer))
    225225    {
    226226        attribs[i++] = WGL_FLOAT_COMPONENTS_NV;
     
    369369{
    370370    bool ret = false;
    371     QGLWidget *dmy = 0;
    372     if (!QGLContext::currentContext()) {
    373         dmy = new QGLWidget;
    374         dmy->makeCurrent();
    375     }
     371    QGLTemporaryContext *tmpContext = 0;
     372    if (!QGLContext::currentContext())
     373        tmpContext = new QGLTemporaryContext;
    376374    PFNWGLGETEXTENSIONSSTRINGARBPROC wglGetExtensionsStringARB =
    377375        (PFNWGLGETEXTENSIONSSTRINGARBPROC) wglGetProcAddress("wglGetExtensionsStringARB");
     
    383381        }
    384382    }
    385     if (dmy)
    386         delete dmy;
     383    if ()
     384        delete ;
    387385    return ret;
    388386}
Note: See TracChangeset for help on using the changeset viewer.