summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-10-08 22:04:33 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-10-08 22:04:33 (GMT)
commitd2d8ccd4b1cb373499b036852850d439a025bbb1 (patch)
treea23f1b62a339b130726d35e4f788045c5ad46b77 /src
parenta35c52abe95f224af062550e4954f7cbefca1bd8 (diff)
downloadQt-d2d8ccd4b1cb373499b036852850d439a025bbb1.zip
Qt-d2d8ccd4b1cb373499b036852850d439a025bbb1.tar.gz
Qt-d2d8ccd4b1cb373499b036852850d439a025bbb1.tar.bz2
Don't print EGL buffer size if it isn't set.
Reviewed-by: trustme
Diffstat (limited to 'src')
-rw-r--r--src/gui/egl/qeglproperties.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/egl/qeglproperties.cpp b/src/gui/egl/qeglproperties.cpp
index 02ae729..c61e1d3 100644
--- a/src/gui/egl/qeglproperties.cpp
+++ b/src/gui/egl/qeglproperties.cpp
@@ -313,7 +313,7 @@ QString QEglProperties::toString() const
int alpha = value(EGL_ALPHA_SIZE);
int bufferSize = value(EGL_BUFFER_SIZE);
if (bufferSize == (red + green + blue + alpha))
- bufferSize = EGL_DONT_CARE;
+ bufferSize = 0;
str += QLatin1String(" rgba=");
str += QString::number(red);
str += QLatin1Char(',');
@@ -322,7 +322,7 @@ QString QEglProperties::toString() const
str += QString::number(blue);
str += QLatin1Char(',');
str += QString::number(alpha);
- if (bufferSize != EGL_DONT_CARE) {
+ if (bufferSize != 0) {
// Only report buffer size if different than r+g+b+a.
str += QLatin1String(" buffer-size=");
str += QString::number(bufferSize);