Fix Win32 device which I just broke!

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2515 dfc29bdd-3216-0410-991c-e03cc46cb475
master
bitplane 2009-07-28 17:23:29 +00:00
parent 24bbe96c9c
commit 7287c9369d
1 changed files with 3 additions and 2 deletions

View File

@ -34,7 +34,8 @@ namespace irr
#endif
#ifdef _IRR_COMPILE_WITH_OPENGL_
IVideoDriver* createOpenGLDriver(const irr::SIrrlichtCreationParameters& params, io::IFileSystem* io, this);
IVideoDriver* createOpenGLDriver(const irr::SIrrlichtCreationParameters& params,
io::IFileSystem* io, CIrrDeviceWin32* device);
#endif
}
} // end namespace irr
@ -454,7 +455,7 @@ void CIrrDeviceWin32::createDriver()
if (CreationParams.Fullscreen)
switchToFullScreen(CreationParams.WindowSize.Width, CreationParams.WindowSize.Height, CreationParams.Bits);
VideoDriver = video::createOpenGLDriver(CreationParams, FileSystem);
VideoDriver = video::createOpenGLDriver(CreationParams, FileSystem, this);
if (!VideoDriver)
{
os::Printer::log("Could not create OpenGL driver.", ELL_ERROR);