Commit 07a43cfc authored by cutealien's avatar cutealien

Add pointer-check for cursor before update to avoid crash when window generation failed.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3758 dfc29bdd-3216-0410-991c-e03cc46cb475
parent b5c52236
......@@ -843,7 +843,8 @@ bool CIrrDeviceLinux::run()
#ifdef _IRR_COMPILE_WITH_X11_
static_cast<CCursorControl*>(CursorControl)->update();
if ( CursorControl )
static_cast<CCursorControl*>(CursorControl)->update();
if ((CreationParams.DriverType != video::EDT_NULL) && display)
{
......
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