From 50256d53781e48053af1d42f1ae958bb7f284780 Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Sat, 8 Jul 2017 09:44:53 -0700 Subject: [PATCH] Fixed unlit textures not drawing. --- common/lc_scene.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/lc_scene.cpp b/common/lc_scene.cpp index c7c0ceb5..71b0b173 100644 --- a/common/lc_scene.cpp +++ b/common/lc_scene.cpp @@ -261,15 +261,15 @@ void lcScene::Draw(lcContext* Context) const if (DrawLines) DrawRenderMeshes(Context, LC_MESH_TEXTURED_LINES | LC_MESH_TEXTURED_TRIANGLES, false, false, false); - else - DrawRenderMeshes(Context, LC_MESH_TEXTURED_TRIANGLES, false, false, false); + + DrawRenderMeshes(Context, LC_MESH_TEXTURED_TRIANGLES, false, false, true); if (!mTranslucentMeshes.IsEmpty()) { glEnable(GL_BLEND); // todo: remove GL calls glDepthMask(GL_FALSE); - DrawRenderMeshes(Context, LC_MESH_TEXTURED_TRIANGLES, false, true, false); + DrawRenderMeshes(Context, LC_MESH_TEXTURED_TRIANGLES, false, true, true); glDepthMask(GL_TRUE); glDisable(GL_BLEND);