]> git.lizzy.rs Git - irrlicht.git/blobdiff - source/Irrlicht/CIrrDeviceSDL.cpp
Add OpenGL3 renderer
[irrlicht.git] / source / Irrlicht / CIrrDeviceSDL.cpp
index 8dee4d1facfc7417db43e86702c3f7e76b9415fe..3b5a7361ff717de42bae8e3952f16e4abd7cdd5a 100644 (file)
@@ -47,6 +47,10 @@ namespace irr
                #ifdef _IRR_COMPILE_WITH_WEBGL1_\r
                IVideoDriver* createWebGL1Driver(const SIrrlichtCreationParameters& params, io::IFileSystem* io, IContextManager* contextManager);\r
                #endif\r
+\r
+               #ifdef ENABLE_OPENGL3\r
+               IVideoDriver* createOpenGL3Driver(const SIrrlichtCreationParameters& params, io::IFileSystem* io, IContextManager* contextManager);\r
+               #endif\r
        } // end namespace video\r
 \r
 } // end namespace irr\r
@@ -457,23 +461,10 @@ void CIrrDeviceSDL::createDriver()
 {\r
        switch(CreationParams.DriverType)\r
        {\r
-       case video::DEPRECATED_EDT_DIRECT3D8_NO_LONGER_EXISTS:\r
-               os::Printer::log("DIRECT3D8 Driver is no longer supported in Irrlicht. Try another one.", ELL_ERROR);\r
-               break;\r
-\r
-       case video::EDT_DIRECT3D9:\r
-               #ifdef _IRR_COMPILE_WITH_DIRECT3D_9_\r
-               os::Printer::log("SDL device does not support DIRECT3D9 driver. Try another one.", ELL_ERROR);\r
-               #else\r
-               os::Printer::log("DIRECT3D9 Driver was not compiled into this dll. Try another one.", ELL_ERROR);\r
-               #endif // _IRR_COMPILE_WITH_DIRECT3D_9_\r
-\r
-               break;\r
-\r
        case video::EDT_OPENGL:\r
                #ifdef _IRR_COMPILE_WITH_OPENGL_\r
                ContextManager = new video::CSDLManager(this);\r
-               VideoDriver = video::createOpenGLDriver(CreationParams, FileSystem, ContextManager);\r
+               VideoDriver = video::createOpenGL3Driver(CreationParams, FileSystem, ContextManager);\r
                #else\r
                os::Printer::log("No OpenGL support compiled in.", ELL_ERROR);\r
                #endif\r