diff --git a/engine/gl/gl_vidlinuxglx.c b/engine/gl/gl_vidlinuxglx.c index 7e8a76f84..6609b6f47 100644 --- a/engine/gl/gl_vidlinuxglx.c +++ b/engine/gl/gl_vidlinuxglx.c @@ -20,7 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #include #include -#ifndef __CYGWIN__ +#ifdef __linux__ #include #endif #include @@ -843,7 +843,12 @@ qboolean GLVID_Init (rendererstate_t *info, unsigned char *palette) return false; } - qglXMakeCurrent(vid_dpy, vid_window, ctx); + if (!qglXMakeCurrent(vid_dpy, vid_window, ctx)) + { + Con_Printf("glXMakeCurrent failed\n"); + GLVID_Shutdown(); + return false; + } glwidth = info->width; glheight = info->height;