*/
#undef WIN32_LEAN_AND_MEAN //hush a warning, SDL.h redefines this
#include <SDL.h>
-#include <SDL_syswm.h>
#include <stdio.h>
#include "quakedef.h"
scr_numtouchscreenareas = 0;
if (vid_touchscreen.integer)
{
- vec3_t move, aim, click;
+ float move[3], aim[3], click[3];
static qboolean buttons[16];
static keydest_t oldkeydest;
keydest_t keydest = (key_consoleactive & KEY_CONSOLEACTIVE_USER) ? key_console : key_dest;
vid.support.ext_draw_range_elements = true;
vid.support.ext_framebuffer_object = false;//true;
- // FIXME remove this workaround once FBO + npot texture mapping is fixed
- if(!vid.support.arb_texture_non_power_of_two)
- {
- vid.support.arb_framebuffer_object = false;
- vid.support.ext_framebuffer_object = false;
- }
-
vid.support.ext_packed_depth_stencil = false;
vid.support.ext_stencil_two_side = false;
vid.support.ext_texture_3d = SDL_GL_ExtensionSupported("GL_OES_texture_3D");
// Adding the OS independent XPM version --blub
#include "darkplaces.xpm"
#include "nexuiz.xpm"
+#if SDL_MAJOR_VERSION == 1
+#if SDL_VIDEO_DRIVER_X11 && !SDL_VIDEO_DRIVER_QUARTZ
+#include <SDL_syswm.h>
+#endif
+#endif
static SDL_Surface *icon = NULL;
static SDL_Surface *VID_WrapSDL_SetVideoMode(int screenwidth, int screenheight, int screenbpp, int screenflags)
{