Commit 563d1c12 authored by hybrid's avatar hybrid

Reduced object size of D3D drivers when compiling without d3d support.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@677 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 60e4d621
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#include "IrrCompileConfig.h" #include "IrrCompileConfig.h"
#ifdef _IRR_COMPILE_WITH_DIRECT3D_8_
#ifdef _IRR_WINDOWS_ #ifdef _IRR_WINDOWS_
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
...@@ -20,8 +22,6 @@ ...@@ -20,8 +22,6 @@
#include "CNullDriver.h" #include "CNullDriver.h"
#include "IMaterialRendererServices.h" #include "IMaterialRendererServices.h"
#ifdef _IRR_COMPILE_WITH_DIRECT3D_8_
#include <d3d8.h> #include <d3d8.h>
namespace irr namespace irr
......
...@@ -7,14 +7,15 @@ ...@@ -7,14 +7,15 @@
#include "IrrCompileConfig.h" #include "IrrCompileConfig.h"
#ifdef _IRR_COMPILE_WITH_DIRECT3D_9_
#ifdef _IRR_WINDOWS_ #ifdef _IRR_WINDOWS_
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#include "CNullDriver.h"
#include "IMaterialRendererServices.h"
#endif #endif
#ifdef _IRR_COMPILE_WITH_DIRECT3D_9_ #include "CNullDriver.h"
#include "IMaterialRendererServices.h"
#include <d3d9.h> #include <d3d9.h>
namespace irr namespace irr
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment