Commit 24bdaa54 authored by Sam Lantinga's avatar Sam Lantinga

Fixed crash in GGI detection

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%4018
parent dbbb4480
...@@ -76,11 +76,13 @@ static int GGI_Available(void) ...@@ -76,11 +76,13 @@ static int GGI_Available(void)
{ {
ggi_visual_t *vis; ggi_visual_t *vis;
vis = NULL;
if (ggiInit() == 0) {
vis = ggiOpen(NULL); vis = ggiOpen(NULL);
if (vis != NULL) if (vis != NULL) {
{
ggiClose(vis); ggiClose(vis);
} }
}
return (vis != NULL); return (vis != NULL);
} }
......
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