share/sync: bury
authorparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Tue, 14 Jul 2009 13:51:41 +0000 (13:51 +0000)
committerparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Tue, 14 Jul 2009 13:51:41 +0000 (13:51 +0000)
git-svn-id: https://s.snth.net/svn/neverball/trunk@2946 78b8d119-cf0a-0410-b17c-f493084dd1d7

Makefile
share/sync.c [deleted file]
share/sync.h [deleted file]
share/video.c

index 8b1425d..1811809 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -166,7 +166,6 @@ BALL_OBJS := \
        share/state.o       \
        share/audio.o       \
        share/text.o        \
-       share/sync.o        \
        share/tilt.o        \
        share/common.o      \
        share/keynames.o    \
@@ -233,7 +232,6 @@ PUTT_OBJS := \
        share/state.o       \
        share/gui.o         \
        share/text.o        \
-       share/sync.o        \
        share/common.o      \
        share/syswm.o       \
        share/list.o        \
diff --git a/share/sync.c b/share/sync.c
deleted file mode 100644 (file)
index f9d9af2..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright (C) 2003 Robert Kooima
- *
- * NEVERBALL is  free software; you can redistribute  it and/or modify
- * it under the  terms of the GNU General  Public License as published
- * by the Free  Software Foundation; either version 2  of the License,
- * or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT  ANY  WARRANTY;  without   even  the  implied  warranty  of
- * MERCHANTABILITY or  FITNESS FOR A PARTICULAR PURPOSE.   See the GNU
- * General Public License for more details.
- */
-
-/*---------------------------------------------------------------------------*/
-
-#ifdef __APPLE__
-#include <OpenGL/OpenGL.h>
-#endif
-
-void sync_init(void)
-{
-#ifdef __APPLE__
-    long swap = 1;
-    CGLSetParameter(CGLGetCurrentContext(),  kCGLCPSwapInterval, &swap);
-#endif
-    return;
-}
-
-/*---------------------------------------------------------------------------*/
diff --git a/share/sync.h b/share/sync.h
deleted file mode 100644 (file)
index 4afee01..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (C) 2003 Robert Kooima
- *
- * NEVERBALL is  free software; you can redistribute  it and/or modify
- * it under the  terms of the GNU General  Public License as published
- * by the Free  Software Foundation; either version 2  of the License,
- * or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT  ANY  WARRANTY;  without   even  the  implied  warranty  of
- * MERCHANTABILITY or  FITNESS FOR A PARTICULAR PURPOSE.   See the GNU
- * General Public License for more details.
- */
-
-#ifndef SYNC_H
-#define SYNC_H
-
-/*---------------------------------------------------------------------------*/
-
-void sync_init(void);
-
-/*---------------------------------------------------------------------------*/
-
-#endif
index a0a0026..0e970d7 100644 (file)
@@ -121,14 +121,6 @@ int video_mode(int f, int w, int h)
         glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
         glDepthFunc(GL_LEQUAL);
 
-        /*
-         * Mac OS X might still need this, because apparently SDL doesn't do
-         * SDL_GL_SWAP_CONTROL on OS X.  TODO: investigate.
-         */
-#if 0
-        if (vsync) sync_init();
-#endif
-
         /* If GL supports multisample, and SDL got a multisample buffer... */
 
 #ifdef GL_ARB_multisample