mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-27 01:06:19 +00:00
Changed: Display a warning when calling getModes if Display is NULL
This commit is contained in:
parent
ba706b46f7
commit
3b32412d2a
1 changed files with 6 additions and 0 deletions
|
@ -2058,6 +2058,12 @@ bool CDriverGL::getModes(std::vector<GfxMode> &modes)
|
|||
|
||||
#elif defined (NL_OS_UNIX)
|
||||
|
||||
if (!_dpy)
|
||||
{
|
||||
nlwarning("3D: Unable to list modes because Display is NULL, did you forget to call init() ?");
|
||||
return false;
|
||||
}
|
||||
|
||||
bool found = false;
|
||||
int screen = DefaultScreen(_dpy);
|
||||
|
||||
|
|
Loading…
Reference in a new issue