Commit d4d4da09 authored by hybrid's avatar hybrid

Linux device fix by zeitgeisty.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@729 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 010e9b2f
...@@ -99,7 +99,7 @@ namespace irr ...@@ -99,7 +99,7 @@ namespace irr
: Device(dev), IsVisible(true), Null(null), UseReferenceRect(false) : Device(dev), IsVisible(true), Null(null), UseReferenceRect(false)
{ {
#ifdef _IRR_COMPILE_WITH_X11_ #ifdef _IRR_COMPILE_WITH_X11_
if (!null) if (!Null)
{ {
XGCValues values; XGCValues values;
unsigned long valuemask = 0; unsigned long valuemask = 0;
...@@ -133,6 +133,7 @@ namespace irr ...@@ -133,6 +133,7 @@ namespace irr
~CCursorControl() ~CCursorControl()
{ {
#ifdef _IRR_COMPILE_WITH_X11_ #ifdef _IRR_COMPILE_WITH_X11_
if (!Null)
XFreeGC(Device->display, gc); XFreeGC(Device->display, gc);
#endif #endif
} }
......
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