Use static image when opengl context is not available

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97
2025-12-16 13:36:28 +02:00
parent fc3c5cba30
commit 177e7b272b
4 changed files with 53 additions and 8 deletions
@@ -45,6 +45,8 @@ class SkinOpenGLWindow : public QOpenGLWindow, protected QOpenGLFunctions {
void updateCape(const QImage& cape);
void setElytraVisible(bool visible);
static bool hasOpenGL();
protected:
void mousePressEvent(QMouseEvent* e) override;
void mouseReleaseEvent(QMouseEvent* e) override;