git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10751
d7cf8633-e32d-0410-b094-
e92efae38249
-#include <memory.h>
-#include "dpsoftrast.h"
#include <stdio.h>
+#include <string.h>
#include <math.h>
+#include "quakedef.h"
+#include "dpsoftrast.h"
-#undef true
-#undef false
#ifndef __cplusplus
-typedef enum bool {false, true} bool;
-#endif
-
-#if defined(__GNUC__) || (defined(_MSC_VER) && _MSC_VER >= 1400)
-#define RESTRICT __restrict
-#else
-#define RESTRICT
+typedef qboolean bool;
#endif
#define GL_NONE 0
free(dpsoftrast.texture);
memset(&dpsoftrast, 0, sizeof(dpsoftrast));
}
+
{
if (!SDL_WasInit(SDL_INIT_VIDEO) && SDL_InitSubSystem(SDL_INIT_VIDEO) < 0)
Sys_Error ("Failed to init SDL video subsystem: %s", SDL_GetError());
+#ifdef SSE2_PRESENT
if (vid_soft.integer)
return VID_InitModeSoft(mode);
else
+#endif
return VID_InitModeGL(mode);
}