mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
Fix backface culling re-enabling with elytra preview on (#5093)
This commit is contained in:
commit
c36fadee70
1 changed files with 0 additions and 2 deletions
|
|
@ -138,11 +138,9 @@ void Scene::draw(QOpenGLShaderProgram* program)
|
||||||
if (!m_elytraVisible) {
|
if (!m_elytraVisible) {
|
||||||
m_cape->draw(program);
|
m_cape->draw(program);
|
||||||
} else {
|
} else {
|
||||||
glDisable(GL_CULL_FACE);
|
|
||||||
for (auto e : m_elytra) {
|
for (auto e : m_elytra) {
|
||||||
e->draw(program);
|
e->draw(program);
|
||||||
}
|
}
|
||||||
glEnable(GL_CULL_FACE);
|
|
||||||
}
|
}
|
||||||
m_capeTexture->release();
|
m_capeTexture->release();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue