src/gldraw.cc

changeset 568
2fb6c500ff9e
parent 564
79b23e02dcf1
child 574
10874674fe30
--- a/src/gldraw.cc	Thu Dec 19 01:19:42 2013 +0200
+++ b/src/gldraw.cc	Thu Dec 19 01:25:50 2013 +0200
@@ -1651,7 +1651,7 @@
 // =============================================================================
 // -----------------------------------------------------------------------------
 bool GLRenderer::setupOverlay (EFixedCamera cam, str file, int x, int y, int w, int h)
-{	QImage* img = new QImage (file);
+{	QImage* img = new QImage (QImage (file).convertToFormat (QImage::Format_ARGB32));
 	LDGLOverlay& info = getOverlay (cam);
 
 	if (img->isNull())

mercurial