mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-10 19:32:10 +00:00
GUIScene: Clear depth buffer + replace deprecated clearZBuffer calls
This commit is contained in:
parent
66b5c08664
commit
285ba74723
7 changed files with 21 additions and 8 deletions
|
@ -664,7 +664,7 @@ void Camera::wield(const ItemStack &item)
|
|||
void Camera::drawWieldedTool(irr::core::matrix4* translation)
|
||||
{
|
||||
// Clear Z buffer so that the wielded tool stays in front of world geometry
|
||||
m_wieldmgr->getVideoDriver()->clearZBuffer();
|
||||
m_wieldmgr->getVideoDriver()->clearBuffers(video::ECBF_DEPTH);
|
||||
|
||||
// Draw the wielded node (in a separate scene manager)
|
||||
scene::ICameraSceneNode* cam = m_wieldmgr->getActiveCamera();
|
||||
|
|
|
@ -950,7 +950,7 @@ void drawItemStack(
|
|||
|
||||
if (imesh && imesh->mesh) {
|
||||
scene::IMesh *mesh = imesh->mesh;
|
||||
driver->clearZBuffer();
|
||||
driver->clearBuffers(video::ECBF_DEPTH);
|
||||
s32 delta = 0;
|
||||
if (rotation_kind < IT_ROT_NONE) {
|
||||
MeshTimeInfo &ti = rotation_time_infos[rotation_kind];
|
||||
|
|
|
@ -40,7 +40,7 @@ void RenderingCoreAnaglyph::setupMaterial(int color_mask)
|
|||
void RenderingCoreAnaglyph::useEye(bool right)
|
||||
{
|
||||
RenderingCoreStereo::useEye(right);
|
||||
driver->clearZBuffer();
|
||||
driver->clearBuffers(video::ECBF_DEPTH);
|
||||
setupMaterial(right ? video::ECP_GREEN | video::ECP_BLUE : video::ECP_RED);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue