From a67affa7b45761f105863af33706c7c4fd71d59a Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Sat, 21 Sep 2024 17:07:59 +0200 Subject: [PATCH] D3D9: drop unused mLights --- RenderSystems/Direct3D9/include/OgreD3D9RenderSystem.h | 4 ---- RenderSystems/Direct3D9/src/OgreD3D9RenderSystem.cpp | 5 ----- 2 files changed, 9 deletions(-) diff --git a/RenderSystems/Direct3D9/include/OgreD3D9RenderSystem.h b/RenderSystems/Direct3D9/include/OgreD3D9RenderSystem.h index 32cc85bd867..44144868a4b 100644 --- a/RenderSystems/Direct3D9/include/OgreD3D9RenderSystem.h +++ b/RenderSystems/Direct3D9/include/OgreD3D9RenderSystem.h @@ -44,7 +44,6 @@ namespace Ogre * Implementation of DirectX9 as a rendering system. * @{ */ -#define MAX_LIGHTS 8 class D3D9DriverList; class D3D9Driver; @@ -112,9 +111,6 @@ namespace Ogre /// Saved manual colour blends ColourValue mManualBlendColours[OGRE_MAX_TEXTURE_LAYERS][2]; - // Array of up to 8 lights, indexed as per API - // Note that a null value indicates a free slot - Light* mLights[MAX_LIGHTS]; D3D9DriverList* getDirect3DDrivers(); void refreshD3DSettings(); void refreshFSAAOptions(); diff --git a/RenderSystems/Direct3D9/src/OgreD3D9RenderSystem.cpp b/RenderSystems/Direct3D9/src/OgreD3D9RenderSystem.cpp index cdacbfb0474..1f00fc92d22 100644 --- a/RenderSystems/Direct3D9/src/OgreD3D9RenderSystem.cpp +++ b/RenderSystems/Direct3D9/src/OgreD3D9RenderSystem.cpp @@ -109,11 +109,6 @@ namespace Ogre // Create the resource manager. mResourceManager = OGRE_NEW D3D9ResourceManager(); - - // init lights - for(int i = 0; i < MAX_LIGHTS; i++ ) - mLights[i] = 0; - // Create our Direct3D object if( NULL == (mD3D = Direct3DCreate9(D3D_SDK_VERSION)) ) OGRE_EXCEPT( Exception::ERR_INTERNAL_ERROR, "Failed to create Direct3D9 object", "D3D9RenderSystem::D3D9RenderSystem" );