summaryrefslogtreecommitdiffstats
path: root/src/opengl/qglpixelbuffer_egl.cpp
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-10-08 22:44:12 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-10-08 22:44:12 (GMT)
commit46843022acd7322c42a98858ec52b65ce7451d06 (patch)
tree4cd247b9dda25f726f12cd0e47cff1f797b8deeb /src/opengl/qglpixelbuffer_egl.cpp
parentd2d8ccd4b1cb373499b036852850d439a025bbb1 (diff)
downloadQt-46843022acd7322c42a98858ec52b65ce7451d06.zip
Qt-46843022acd7322c42a98858ec52b65ce7451d06.tar.gz
Qt-46843022acd7322c42a98858ec52b65ce7451d06.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
Diffstat (limited to 'src/opengl/qglpixelbuffer_egl.cpp')
-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 4cba1bb..c2ba4a5 100644
--- a/src/opengl/qglpixelbuffer_egl.cpp
+++ b/src/opengl/qglpixelbuffer_egl.cpp
@@ -208,7 +208,7 @@ bool QGLPixelBuffer::hasOpenGLPbuffers()
QEglProperties configProps;
qt_egl_set_format(configProps, QInternal::Pbuffer, QGLFormat::defaultFormat());
configProps.setRenderableType(QEgl::OpenGL);
- return ctx.chooseConfig(configProps);
+ return ctx.chooseConfig(configProps, QEgl::BestPixelFormat);
}
QT_END_NAMESPACE