]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_null.c
fix viewmodel crash
[xonotic/darkplaces.git] / vid_null.c
index 6a14679bcaf9dc239c69d5c94cb8a96378ba21d0..2b232f566f1468c0e7659c90c69c88cbbd215e55 100644 (file)
@@ -18,14 +18,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
 
 #include <signal.h>
-#include <dlfcn.h>
 #include "quakedef.h"
 
 int cl_available = false;
 
-// global video state
-viddef_t vid;
-
 void VID_Shutdown(void)
 {
 }
@@ -67,11 +63,16 @@ int VID_SetGamma(float prescale, float gamma, float scale, float base)
        return FALSE;
 }
 
-void VID_Init(int fullscreen, int width, int height, int bpp)
+void VID_Init(void)
 {
        InitSig(); // trap evil signals
 }
 
+int VID_InitMode(int fullscreen, int width, int height, int bpp, int stencil)
+{
+       return false;
+}
+
 int GL_OpenLibrary(const char *name)
 {
        return false;
@@ -94,14 +95,6 @@ void IN_Commands(void)
 {
 }
 
-void IN_Init(void)
-{
-}
-
-void IN_Shutdown(void)
-{
-}
-
 void IN_Move(usercmd_t *cmd)
 {
 }