1
0
Fork 0
forked from fte/fteqw

Fixed SDL stuff

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@967 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-04-19 19:31:15 +00:00
parent 41fb31230a
commit d03c99b3eb

View file

@ -20,7 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <termios.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#ifndef __CYGWIN__
#ifdef __linux__
#include <sys/vt.h>
#endif
#include <stdarg.h>
@ -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;