From 8cfddcefa338a370d72711859f25e0a8e1a45a04 Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Tue, 12 Nov 2019 15:13:47 -0800 Subject: [PATCH] Removed unused variable. --- common/lc_scene.cpp | 4 ---- common/lc_scene.h | 1 - 2 files changed, 5 deletions(-) diff --git a/common/lc_scene.cpp b/common/lc_scene.cpp index aeb92a26..f1c3a020 100644 --- a/common/lc_scene.cpp +++ b/common/lc_scene.cpp @@ -23,7 +23,6 @@ void lcScene::Begin(const lcMatrix44& ViewMatrix) mOpaqueMeshes.RemoveAll(); mTranslucentMeshes.RemoveAll(); mInterfaceObjects.RemoveAll(); - mHasTexture = false; } void lcScene::End() @@ -71,9 +70,6 @@ void lcScene::AddMesh(lcMesh* Mesh, const lcMatrix44& WorldMatrix, int ColorInde if ((Flags & lcMeshFlag::HasTranslucent) || ((Flags & lcMeshFlag::HasDefault) && Translucent)) mTranslucentMeshes.Add(mRenderMeshes.GetSize() - 1); - - if (Flags & lcMeshFlag::HasTexture) - mHasTexture = true; } void lcScene::DrawPass(lcContext* Context, lcRenderPass RenderPass, int PrimitiveTypes) const diff --git a/common/lc_scene.h b/common/lc_scene.h index 26c0a230..940f0555 100644 --- a/common/lc_scene.h +++ b/common/lc_scene.h @@ -72,5 +72,4 @@ protected: lcArray mOpaqueMeshes; lcArray mTranslucentMeshes; lcArray mInterfaceObjects; - bool mHasTexture; };