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_egl.cpp

    r769 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])
     
    4848#include <private/qgl_p.h>
    4949
    50 #ifdef QT_OPENGL_ES_1_CL
    51 #include "qgl_cl_p.h"
    52 #endif
    53 
    5450QT_BEGIN_NAMESPACE
    5551
     
    7975        ctx->setConfig(shareContext->config());
    8076#if QGL_RENDER_TEXTURE
    81         EGLint value = EGL_FALSE;
    82         if (ctx->configAttrib(EGL_BIND_TO_TEXTURE_RGBA, &value) && value)
     77        if (ctx->configAttrib(EGL_BIND_TO_TEXTURE_RGBA) == EGL_TRUE)
    8378            textureFormat = EGL_TEXTURE_RGBA;
    84         else if (ctx->configAttrib(EGL_BIND_TO_TEXTURE_RGB, &value) && value)
     79        else if (ctx->configAttrib(EGL_BIND_TO_TEXTURE_RGB)
    8580            textureFormat = EGL_TEXTURE_RGB;
    8681#endif
    8782    } else {
    8883        QEglProperties configProps;
    89         qt_egl_set_format(configProps, QInternal::Pbuffer, f);
     84        qt_eglproperties_set_glformat(configProps, f);
     85        configProps.setDeviceType(QInternal::Pbuffer);
    9086        configProps.setRenderableType(ctx->api());
    9187        bool ok = false;
     
    117113
    118114    // Retrieve the actual format properties.
    119     qt_egl_update_format(*ctx, format);
     115    qt_);
    120116
    121117    // Create the attributes needed for the pbuffer.
     
    142138#endif
    143139    if (pbuf == EGL_NO_SURFACE) {
    144         qWarning() << "QGLPixelBufferPrivate::init(): Unable to create EGL pbuffer surface:" << QEglContext::errorString(eglGetError());
     140        qWarning() << "QGLPixelBufferPrivate::init(): Unable to create EGL pbuffer surface:" << QEgl);
    145141        return false;
    146142    }
     
    209205{
    210206    // See if we have at least 1 configuration that matches the default format.
    211     EGLDisplay dpy = QEglContext::display();
     207    EGLDisplay dpy = QEgl::display();
    212208    if (dpy == EGL_NO_DISPLAY)
    213209        return false;
    214210    QEglProperties configProps;
    215     qt_egl_set_format(configProps, QInternal::Pbuffer, QGLFormat::defaultFormat());
     211    qt_eglproperties_set_glformat(configProps, QGLFormat::defaultFormat());
     212    configProps.setDeviceType(QInternal::Pbuffer);
    216213    configProps.setRenderableType(QEgl::OpenGL);
    217214    do {
Note: See TracChangeset for help on using the changeset viewer.