Gitlab@AEI Hannover will go down for maintenance on 2020-09-21 at 4:00 UTC. The service will be unavailable for up to 24 hours. If you have questions about this please contact

Commit 97ca0079 authored by Oliver Bock's avatar Oliver Bock

Using PNG background texture

* JPG version fails to load on some Macs and on Windoze (static build)
* TODO: try alternatives to reduce the PNG size or fix the root cause
parent 208283d7
......@@ -196,7 +196,7 @@ void PulsarAnimationWidget::initializeGL()
// prepare and check background texture
QImage backgroundTexture(":/textures/resources/texture_background_carina.jpg");
QImage backgroundTexture(":/textures/resources/texture_background_carina.png");
if(backgroundTexture.width() != backgroundTexture.height()) {
qWarning() << msgShape.arg(tr("Background"));
......@@ -215,7 +215,7 @@ void PulsarAnimationWidget::initializeGL()
// bind textures
m_pulsarTexture = bindTexture(pulsarTexture, GL_TEXTURE_2D, GL_RGBA);
m_backgroundTexture = bindTexture(backgroundTexture, GL_TEXTURE_2D, GL_RGB);
m_backgroundTexture = bindTexture(backgroundTexture, GL_TEXTURE_2D, GL_RGBA);
// use mipmapped textures
......@@ -13,7 +13,7 @@
<qresource prefix="textures" >
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment