fix backface culling reenabling with elytra preview

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2026-02-24 12:14:55 +05:00
parent 4ed77a940c
commit a3eba815dd
No known key found for this signature in database
GPG key ID: B77C34313AEE1FFF

View file

@ -138,11 +138,9 @@ void Scene::draw(QOpenGLShaderProgram* program)
if (!m_elytraVisible) {
m_cape->draw(program);
} else {
glDisable(GL_CULL_FACE);
for (auto e : m_elytra) {
e->draw(program);
}
glEnable(GL_CULL_FACE);
}
m_capeTexture->release();
}