diff --git a/include/SIrrCreationParameters.h b/include/SIrrCreationParameters.h index 07053134..e21a4c33 100644 --- a/include/SIrrCreationParameters.h +++ b/include/SIrrCreationParameters.h @@ -151,7 +151,7 @@ namespace irr //! Don't use or change this parameter. /** Always set it to IRRLICHT_SDK_VERSION, which is done by default. This is needed for sdk version checks. */ - const c8* SDK_version_do_not_use; + const c8* const SDK_version_do_not_use; }; diff --git a/include/irrlicht.h b/include/irrlicht.h index 4131a28e..7cb78b89 100644 --- a/include/irrlicht.h +++ b/include/irrlicht.h @@ -272,8 +272,6 @@ namespace irr \param vsync: Specifies vertical syncronisation: If set to true, the driver will wait for the vertical retrace period, otherwise not. \param receiver: A user created event receiver. - \param sdk_version_do_not_use: Don't use or change this parameter. Always set it to - IRRLICHT_SDK_VERSION, which is done by default. This is needed for sdk version checks. \return Returns pointer to the created IrrlichtDevice or null if the device could not be created. */ @@ -285,8 +283,7 @@ namespace irr bool fullscreen = false, bool stencilbuffer = false, bool vsync = false, - IEventReceiver* receiver = 0, - const c8* sdk_version_do_not_use = IRRLICHT_SDK_VERSION); + IEventReceiver* receiver = 0); //! Creates an Irrlicht device with the option to specify advanced parameters. /** Usually you should used createDevice() for creating an Irrlicht Engine device. diff --git a/source/Irrlicht/Irrlicht.cpp b/source/Irrlicht/Irrlicht.cpp index f4cd1509..522e71c8 100644 --- a/source/Irrlicht/Irrlicht.cpp +++ b/source/Irrlicht/Irrlicht.cpp @@ -25,8 +25,7 @@ namespace irr IRRLICHT_API IrrlichtDevice* IRRCALLCONV createDevice(video::E_DRIVER_TYPE driverType, const core::dimension2d& windowSize, u32 bits, bool fullscreen, - bool stencilbuffer, bool vsync, IEventReceiver* res, - const char* version) + bool stencilbuffer, bool vsync, IEventReceiver* res) { SIrrlichtCreationParameters p; p.DriverType = driverType; @@ -36,7 +35,6 @@ namespace irr p.Stencilbuffer = stencilbuffer; p.Vsync = vsync; p.EventReceiver = res; - p.SDK_version_do_not_use = version; return createDeviceEx(p); }