equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtOpenGL module of the Qt Toolkit. |
7 ** This file is part of the QtOpenGL module of the Qt Toolkit. |
8 ** |
8 ** |
152 class QGLPixelBufferPrivate { |
152 class QGLPixelBufferPrivate { |
153 Q_DECLARE_PUBLIC(QGLPixelBuffer) |
153 Q_DECLARE_PUBLIC(QGLPixelBuffer) |
154 public: |
154 public: |
155 QGLPixelBufferPrivate(QGLPixelBuffer *q) : q_ptr(q), invalid(true), qctx(0), pbuf(0), ctx(0) |
155 QGLPixelBufferPrivate(QGLPixelBuffer *q) : q_ptr(q), invalid(true), qctx(0), pbuf(0), ctx(0) |
156 { |
156 { |
157 QGLExtensions::init(); |
|
158 #ifdef Q_WS_WIN |
157 #ifdef Q_WS_WIN |
159 dc = 0; |
158 dc = 0; |
160 #elif defined(Q_WS_MACX) |
159 #elif defined(Q_WS_MACX) |
161 share_ctx = 0; |
160 share_ctx = 0; |
162 #endif |
161 #endif |