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/qgl_wince.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])
     
    9696#include <qcolor.h>
    9797
    98 
    99 
     98/*
     99    QGLTemporaryContext implementation
     100*/
     101
     102class QGLTemporaryContextPrivate
     103{
     104public:
     105    QGLWidget *widget;
     106};
     107
     108QGLTemporaryContext::QGLTemporaryContext(bool, QWidget *)
     109    : d(new QGLTemporaryContextPrivate)
     110{
     111    d->widget = new QGLWidget;
     112    d->widget->makeCurrent();
     113}
     114
     115QGLTemporaryContext::~QGLTemporaryContext()
     116{
     117    delete d->widget;
     118}
    100119
    101120/*****************************************************************************
     
    628647}
    629648
    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 
    647649QT_END_NAMESPACE
Note: See TracChangeset for help on using the changeset viewer.