mirror of
https://github.com/PrismLauncher/PrismLauncher
synced 2026-04-23 09:05:03 +00:00
fix backface culling reenabling with elytra preview
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
4ed77a940c
commit
a3eba815dd
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue