mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 14:42:13 +00:00
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:
parent
41fb31230a
commit
d03c99b3eb
1 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue