Changeset 651 for trunk/src/opengl/qgl_wince.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/qgl_wince.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]) … … 96 96 #include <qcolor.h> 97 97 98 99 98 /* 99 QGLTemporaryContext implementation 100 */ 101 102 class QGLTemporaryContextPrivate 103 { 104 public: 105 QGLWidget *widget; 106 }; 107 108 QGLTemporaryContext::QGLTemporaryContext(bool, QWidget *) 109 : d(new QGLTemporaryContextPrivate) 110 { 111 d->widget = new QGLWidget; 112 d->widget->makeCurrent(); 113 } 114 115 QGLTemporaryContext::~QGLTemporaryContext() 116 { 117 delete d->widget; 118 } 100 119 101 120 /***************************************************************************** … … 628 647 } 629 648 630 void QGLExtensions::init()631 {632 static bool init_done = false;633 634 if (init_done)635 return;636 init_done = true;637 638 // We need a context current to initialize the extensions.639 QGLWidget tmpWidget;640 tmpWidget.makeCurrent();641 642 init_extensions();643 644 tmpWidget.doneCurrent();645 }646 647 649 QT_END_NAMESPACE
Note:
See TracChangeset
for help on using the changeset viewer.