Changeset 651 for trunk/src/opengl/qglpixelbuffer_win.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/qglpixelbuffer_win.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 20 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 222 222 if ((f.redBufferSize() > 8 || f.greenBufferSize() > 8 223 223 || f.blueBufferSize() > 8 || f.alphaBufferSize() > 8) 224 && (QGLExtensions::glExtensions & QGLExtensions::NVFloatBuffer))224 && (QGLExtensions::glExtensions & QGLExtensions::NVFloatBuffer)) 225 225 { 226 226 attribs[i++] = WGL_FLOAT_COMPONENTS_NV; … … 369 369 { 370 370 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; 376 374 PFNWGLGETEXTENSIONSSTRINGARBPROC wglGetExtensionsStringARB = 377 375 (PFNWGLGETEXTENSIONSSTRINGARBPROC) wglGetProcAddress("wglGetExtensionsStringARB"); … … 383 381 } 384 382 } 385 if ( dmy)386 delete dmy;383 if () 384 delete ; 387 385 return ret; 388 386 }
Note:
See TracChangeset
for help on using the changeset viewer.