#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
{\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