Skip to content

Commit

Permalink
D3D9: drop unused mLights
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Sep 21, 2024
1 parent d6a7772 commit 99ed86d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions RenderSystems/Direct3D9/include/OgreD3D9RenderSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ namespace Ogre
* Implementation of DirectX9 as a rendering system.
* @{
*/
#define MAX_LIGHTS 8

class D3D9DriverList;
class D3D9Driver;
Expand Down Expand Up @@ -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();
Expand Down
5 changes: 0 additions & 5 deletions RenderSystems/Direct3D9/src/OgreD3D9RenderSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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" );
Expand Down

0 comments on commit 99ed86d

Please sign in to comment.