Changeset 846 for trunk/src/opengl/qglpixelbuffer.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/opengl/qglpixelbuffer.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 68 68 additional copy operations. This is supported only on Windows 69 69 and Mac OS X systems that provide the \c render_texture 70 extension. 70 extension. Note that under Windows, a multi-sampled pbuffer 71 can't be used in conjunction with the \c render_texture 72 extension. If a multi-sampled pbuffer is requested under 73 Windows, the \c render_texture extension is turned off for that 74 pbuffer. 75 76 71 77 \endlist 72 78 … … 79 85 #include <QtCore/qglobal.h> 80 86 81 #if !defined(QT_OPENGL_ES_1) && !defined(QT_OPENGL_ES_1_CL)87 #if !defined(QT_OPENGL_ES_1) 82 88 #include <private/qpaintengineex_opengl2_p.h> 83 89 #endif … … 138 144 qctx->d_func()->dc = dc; 139 145 qctx->d_func()->rc = ctx; 140 #elif (defined(Q_WS_X11) && !defined(QT_OPENGL_ES))146 #elif (defined(Q_WS_X11) && )) 141 147 qctx->d_func()->cx = ctx; 142 148 qctx->d_func()->pbuf = (void *) pbuf; … … 145 151 qctx->d_func()->cx = ctx; 146 152 qctx->d_func()->vi = 0; 147 #elif defined(QT_OPENGL_ES)153 #elif ) 148 154 qctx->d_func()->eglContext = ctx; 149 155 qctx->d_func()->eglSurface = pbuf; … … 255 261 */ 256 262 257 #if (defined(Q_WS_X11) || defined(Q_WS_WIN)) && !defined(QT_OPENGL_ES)263 #if (defined(Q_WS_X11) || defined(Q_WS_WIN)) && ) 258 264 GLuint QGLPixelBuffer::generateDynamicTexture() const 259 265 { … … 388 394 } 389 395 390 #if !defined(QT_OPENGL_ES_1) && !defined(QT_OPENGL_ES_1_CL)396 #if !defined(QT_OPENGL_ES_1) 391 397 Q_GLOBAL_STATIC(QGL2PaintEngineEx, qt_buffer_2_engine) 392 398 #endif … … 399 405 QPaintEngine *QGLPixelBuffer::paintEngine() const 400 406 { 401 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_1_CL)407 #if defined(QT_OPENGL_ES_1) 402 408 return qt_buffer_engine(); 403 409 #elif defined(QT_OPENGL_ES_2) … … 411 417 } 412 418 413 extern int qt_defaultDpiX();414 extern int qt_defaultDpiY();419 extern int qt_defaultDpiX(); 420 extern int qt_defaultDpiY(); 415 421 416 422 /*! \reimp */
Note:
See TracChangeset
for help on using the changeset viewer.