summaryrefslogtreecommitdiffstats
path: root/src/gui/egl/qeglproperties.cpp
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2009-08-03 09:54:33 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2009-08-03 09:54:33 (GMT)
commit1b469ac64cf81476436009aef66009c30335a01c (patch)
tree42774a90e7215c2dc8fcc45f585bd5ad190244ba /src/gui/egl/qeglproperties.cpp
parent23045677bc466b91619495809c97001f341a3d6c (diff)
downloadQt-1b469ac64cf81476436009aef66009c30335a01c.zip
Qt-1b469ac64cf81476436009aef66009c30335a01c.tar.gz
Qt-1b469ac64cf81476436009aef66009c30335a01c.tar.bz2
Add EGL_BIND_TO_TEXTURE_RGBA to QEglProperties::reduceConfiguration()
Now reduceConfiguration will add a new step of reduction which removes EGL_BIND_TO_TEXTURE_RGBA and replaces it with EGL_BIND_TO_TEXTURE_RGB.
Diffstat (limited to 'src/gui/egl/qeglproperties.cpp')
-rw-r--r--src/gui/egl/qeglproperties.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gui/egl/qeglproperties.cpp b/src/gui/egl/qeglproperties.cpp
index fefd070..358ebcc 100644
--- a/src/gui/egl/qeglproperties.cpp
+++ b/src/gui/egl/qeglproperties.cpp
@@ -229,12 +229,21 @@ bool QEglProperties::reduceConfiguration()
removeValue(EGL_SAMPLES);
return true;
}
- if (removeValue(EGL_ALPHA_SIZE))
+ if (removeValue(EGL_ALPHA_SIZE)) {
+#if defined(EGL_BIND_TO_TEXTURE_RGBA) && defined(EGL_BIND_TO_TEXTURE_RGB)
+ if (removeValue(EGL_BIND_TO_TEXTURE_RGBA))
+ setValue(EGL_BIND_TO_TEXTURE_RGB, TRUE);
+#endif
return true;
+ }
if (removeValue(EGL_STENCIL_SIZE))
return true;
if (removeValue(EGL_DEPTH_SIZE))
return true;
+#if defined(EGL_BIND_TO_TEXTURE_RGB)
+ if (removeValue(EGL_BIND_TO_TEXTURE_RGB))
+ return true;
+#endif
return false;
}