sync with trunk gsoc2008_manymouse
authorSzymon Wilczek <kazeuser@gmail.com>
Fri, 06 Jun 2008 14:50:56 +0000
branchgsoc2008_manymouse
changeset 3759 064c178558b7
parent 3758 5f3ea4cd5adb
child 3760 64f346a83ed3
sync with trunk
src/video/SDL_sysvideo.h
src/video/SDL_video.c
src/video/cocoa/SDL_cocoaopengl.m
--- a/src/video/SDL_sysvideo.h	Sat May 17 10:09:11 2008 +0000
+++ b/src/video/SDL_sysvideo.h	Fri Jun 06 14:50:56 2008 +0000
@@ -127,7 +127,6 @@
 
     int display;
     SDL_Renderer *renderer;
-    SDL_GLContext context;
 
     void *userdata;
     void *driverdata;
--- a/src/video/SDL_video.c	Sat May 17 10:09:11 2008 +0000
+++ b/src/video/SDL_video.c	Fri Jun 06 14:50:56 2008 +0000
@@ -2525,12 +2525,6 @@
     if (!context) {
         window = NULL;
     }
-    if (window) {
-        if (window->context == context) {
-            return 0;
-        }
-        window->context = context;
-    }
     return _this->GL_MakeCurrent(_this, window, context);
 }
 
--- a/src/video/cocoa/SDL_cocoaopengl.m	Sat May 17 10:09:11 2008 +0000
+++ b/src/video/cocoa/SDL_cocoaopengl.m	Fri Jun 06 14:50:56 2008 +0000
@@ -288,7 +288,7 @@
 {
     NSAutoreleasePool *pool;
     NSOpenGLContext *nscontext;
-    long value;
+    GLint value;
     int status;
 
     pool = [[NSAutoreleasePool alloc] init];
@@ -312,7 +312,7 @@
 {
     NSAutoreleasePool *pool;
     NSOpenGLContext *nscontext;
-    long value;
+    GLint value;
     int status;
 
     pool = [[NSAutoreleasePool alloc] init];