summaryrefslogtreecommitdiff
path: root/mcompositor
diff options
context:
space:
mode:
authorKimmo Hämäläinen <kimmo.hamalainen@nokia.com>2010-09-23 16:58:25 +0300
committerKimmo Hämäläinen <kimmo.hamalainen@nokia.com>2010-09-23 16:58:25 +0300
commit4f43939897b26d144d4431afed40bb3176cf951e (patch)
tree8cfc66a6123339581519305880eee129c7f16013 /mcompositor
parentdd5455626475c90fb1bf04b65e325a0d56d4b0d7 (diff)
don't draw black background in startup when running on GLES2
- GLES2_VERSION/DESKTOP_VERSION are now set on uppermost level
Diffstat (limited to 'mcompositor')
-rw-r--r--mcompositor/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/mcompositor/main.cpp b/mcompositor/main.cpp
index a2772b7..d8837b4 100644
--- a/mcompositor/main.cpp
+++ b/mcompositor/main.cpp
@@ -64,10 +64,12 @@ int main(int argc, char *argv[])
QGLWidget *w = new QGLWidget(fmt);
w->setAttribute(Qt::WA_PaintOutsidePaintEvent);
+#ifndef GLES2_VERSION
QPalette p = w->palette();
p.setColor(QPalette::Background, QColor(Qt::black));
w->setPalette(p);
w->update();
+#endif
w->setAutoFillBackground(false);
w->setMinimumSize(QApplication::desktop()->width(),