Skip to content

Fix variable mixup from e8f64be6

Martin Heistermann requested to merge tex2d-fix-variable-mixup into master

Just got this warning:

../OpenFlipper/libs_required/ACG/GL/globjects.cc:643:51: warning: variable 'gltex' is uninitialized when used within its own initialization [-Wuninitialized]
      QImage gltex = ACG::Util::convertToGLFormat(gltex);

Introduced by a recent commit that mixed up two variables:

-      QImage gltex = QGLWidget::convertToGLFormat ( qtex );
+      QImage gltex = ACG::Util::convertToGLFormat(gltex);

I didn't test this change, but it seems clear enough that change was unintended.

Merge request reports