]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - thread_sdl.c
Made RENDERPATH_GL20 require fbo support and always use it.
[xonotic/darkplaces.git] / thread_sdl.c
index d2567809a90913a38c104dbd685c220e4dd855f8..4f58f71d386f95863d6a6752cee0ea133f91776d 100644 (file)
@@ -1,7 +1,7 @@
-#include "quakedef.h"
-#include "thread.h"
 #include <SDL.h>
 #include <SDL_thread.h>
+#include "quakedef.h"
+#include "thread.h"
 
 int Thread_Init(void)
 {
@@ -100,7 +100,11 @@ int _Thread_CondWait(void *cond, void *mutex, const char *filename, int fileline
 
 void *_Thread_CreateThread(int (*fn)(void *), void *data, const char *filename, int fileline)
 {
+#if SDL_MAJOR_VERSION == 1
        void *thread = (void *)SDL_CreateThread(fn, data);
+#else
+       void *thread = (void *)SDL_CreateThread(fn, filename, data);
+#endif
 #ifdef THREADDEBUG
        Sys_PrintfToTerminal("%p thread create %s:%i\n"   , thread, filename, fileline);
 #endif