Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/opengl/qglpixelbuffer.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    6868       additional copy operations. This is supported only on Windows
    6969       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
    7177    \endlist
    7278
     
    7985#include <QtCore/qglobal.h>
    8086
    81 #if !defined(QT_OPENGL_ES_1) && !defined(QT_OPENGL_ES_1_CL)
     87#if !defined(QT_OPENGL_ES_1)
    8288#include <private/qpaintengineex_opengl2_p.h>
    8389#endif
     
    138144        qctx->d_func()->dc = dc;
    139145        qctx->d_func()->rc = ctx;
    140 #elif (defined(Q_WS_X11) && !defined(QT_OPENGL_ES))
     146#elif (defined(Q_WS_X11) && ))
    141147        qctx->d_func()->cx = ctx;
    142148        qctx->d_func()->pbuf = (void *) pbuf;
     
    145151        qctx->d_func()->cx = ctx;
    146152        qctx->d_func()->vi = 0;
    147 #elif defined(QT_OPENGL_ES)
     153#elif )
    148154        qctx->d_func()->eglContext = ctx;
    149155        qctx->d_func()->eglSurface = pbuf;
     
    255261*/
    256262
    257 #if (defined(Q_WS_X11) || defined(Q_WS_WIN)) && !defined(QT_OPENGL_ES)
     263#if (defined(Q_WS_X11) || defined(Q_WS_WIN)) && )
    258264GLuint QGLPixelBuffer::generateDynamicTexture() const
    259265{
     
    388394}
    389395
    390 #if !defined(QT_OPENGL_ES_1) && !defined(QT_OPENGL_ES_1_CL)
     396#if !defined(QT_OPENGL_ES_1)
    391397Q_GLOBAL_STATIC(QGL2PaintEngineEx, qt_buffer_2_engine)
    392398#endif
     
    399405QPaintEngine *QGLPixelBuffer::paintEngine() const
    400406{
    401 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_1_CL)
     407#if defined(QT_OPENGL_ES_1)
    402408    return qt_buffer_engine();
    403409#elif defined(QT_OPENGL_ES_2)
     
    411417}
    412418
    413 extern int qt_defaultDpiX();
    414 extern int qt_defaultDpiY();
     419extern int qt_defaultDpiX();
     420extern int qt_defaultDpiY();
    415421
    416422/*! \reimp */
Note: See TracChangeset for help on using the changeset viewer.