Changeset 846 for trunk/src/opengl/qglpixelbuffer_egl.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_egl.cpp
r769 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]) … … 48 48 #include <private/qgl_p.h> 49 49 50 #ifdef QT_OPENGL_ES_1_CL51 #include "qgl_cl_p.h"52 #endif53 54 50 QT_BEGIN_NAMESPACE 55 51 … … 79 75 ctx->setConfig(shareContext->config()); 80 76 #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) 83 78 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) 85 80 textureFormat = EGL_TEXTURE_RGB; 86 81 #endif 87 82 } else { 88 83 QEglProperties configProps; 89 qt_egl_set_format(configProps, QInternal::Pbuffer, f); 84 qt_eglproperties_set_glformat(configProps, f); 85 configProps.setDeviceType(QInternal::Pbuffer); 90 86 configProps.setRenderableType(ctx->api()); 91 87 bool ok = false; … … 117 113 118 114 // Retrieve the actual format properties. 119 qt_ egl_update_format(*ctx, format);115 qt_); 120 116 121 117 // Create the attributes needed for the pbuffer. … … 142 138 #endif 143 139 if (pbuf == EGL_NO_SURFACE) { 144 qWarning() << "QGLPixelBufferPrivate::init(): Unable to create EGL pbuffer surface:" << QEgl Context::errorString(eglGetError());140 qWarning() << "QGLPixelBufferPrivate::init(): Unable to create EGL pbuffer surface:" << QEgl); 145 141 return false; 146 142 } … … 209 205 { 210 206 // See if we have at least 1 configuration that matches the default format. 211 EGLDisplay dpy = QEgl Context::display();207 EGLDisplay dpy = QEgl::display(); 212 208 if (dpy == EGL_NO_DISPLAY) 213 209 return false; 214 210 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); 216 213 configProps.setRenderableType(QEgl::OpenGL); 217 214 do {
Note:
See TracChangeset
for help on using the changeset viewer.