summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-10-09 00:54:33 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-10-09 00:54:33 (GMT)
commit71b3a986a602e47a4d4ba433465d0cd9d1e5e168 (patch)
tree715d3b187b6da00ca3ecf5dbde629d11d9da44e2 /src
parentaa863c61ec5e68ff73c02e25a2954cdba9c2ef15 (diff)
downloadQt-71b3a986a602e47a4d4ba433465d0cd9d1e5e168.zip
Qt-71b3a986a602e47a4d4ba433465d0cd9d1e5e168.tar.gz
Qt-71b3a986a602e47a4d4ba433465d0cd9d1e5e168.tar.bz2
Fix detection of pbuffers on OpenGL/ES systems
The previous code was searching for an exact pbuffer format of RGBA = 1, 1, 1, 0, which of course is never going to happen. Instead, search for the best format. Reviewed-by: trustme Conflicts: src/opengl/qglpixelbuffer_egl.cpp Back-port of 46843022acd7322c42a98858ec52b65ce7451d06
Diffstat (limited to 'src')
-rw-r--r--src/opengl/qglpixelbuffer_egl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qglpixelbuffer_egl.cpp b/src/opengl/qglpixelbuffer_egl.cpp
index a501c47..b2f16c1 100644
--- a/src/opengl/qglpixelbuffer_egl.cpp
+++ b/src/opengl/qglpixelbuffer_egl.cpp
@@ -209,7 +209,7 @@ bool QGLPixelBuffer::hasOpenGLPbuffers()
QEglProperties configProps;
qt_egl_set_format(configProps, QInternal::Pbuffer, QGLFormat::defaultFormat());
configProps.setRenderableType(QEglContext::OpenGL);
- return ctx.chooseConfig(configProps);
+ return ctx.chooseConfig(configProps, QEglContext::BestPixelFormat);
}
QT_END_NAMESPACE