[quake2] Release 0.15!

Vincent Cojot coyote at step.polymtl.ca
Tue Oct 8 18:22:30 EDT 2002


Brendan,

It's broken for Solaris too.. somehow my patches did not get exactly into
CVS because I found duplicates.. Can you apply this emergency patch to
0.15? Thank you.

Vincent
-------------- next part --------------
diff -u -b -r -x postinstall -x preinstall -x preremove -x postremove -x CVS -x prototype src/solaris/gl_glx.c /usr/local/src/quake2-r0.0.14.3/src/solaris/gl_glx.c
--- src/solaris/gl_glx.c	Tue Oct  8 22:54:27 2002
+++ /usr/local/src/quake2-r0.0.14.3/src/solaris/gl_glx.c	Wed Sep 25 21:12:51 2002
@@ -92,7 +92,6 @@
 static int mx, my;
 static int old_windowed_mouse;
 static int p_mouse_x, p_mouse_y;
-qboolean have_stencil = false;
 
 static cvar_t	*_windowed_mouse;
 static cvar_t	*m_filter;
@@ -101,6 +100,9 @@
 static qboolean	mlooking;
 static qboolean mouse_active = false;
 
+// stencilbuffer shadows   
+qboolean have_stencil = false;
+
 // state struct passed in Init
 static in_state_t	*in_state;
 
@@ -112,8 +114,6 @@
 static cvar_t *m_forward;
 static cvar_t *freelook;
 static cvar_t   *r_fakeFullscreen;
-
-qboolean have_stencil = false;
 
 static Cursor CreateNullCursor(Display *display, Window root)
 {
diff -u -b -r -x postinstall -x preinstall -x preremove -x postremove -x CVS -x prototype src/solaris/rw_sdl.c /usr/local/src/quake2-r0.0.14.3/src/solaris/rw_sdl.c
--- src/solaris/rw_sdl.c	Tue Oct  8 22:54:27 2002
+++ /usr/local/src/quake2-r0.0.14.3/src/solaris/rw_sdl.c	Sat Sep 28 14:31:52 2002
@@ -38,7 +38,6 @@
 /*****************************************************************************/
 
 static qboolean                 X11_active = false;
-qboolean have_stencil = false;
 
 static SDL_Surface *surface;
 
@@ -84,6 +83,9 @@
 
 static qboolean	mlooking;
 
+// stencilbuffer shadows   
+qboolean have_stencil = false;
+
 // state struct passed in Init
 static in_state_t	*in_state;
 
@@ -638,9 +640,9 @@
 	SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 5);
 	SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 5);
 	SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5);
+	SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 1);
 	SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16);
 	SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
-	SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 1);
 
 	flags = SDL_OPENGL;
 	if (fullscreen)
diff -u -b -r -x postinstall -x preinstall -x preremove -x postremove -x CVS -x prototype src/solaris/rw_x11.c /usr/local/src/quake2-r0.0.14.3/src/solaris/rw_x11.c
--- src/solaris/rw_x11.c	Tue Oct  8 22:54:27 2002
+++ /usr/local/src/quake2-r0.0.14.3/src/solaris/rw_x11.c	Wed Sep 25 21:13:40 2002
@@ -52,8 +52,6 @@
 static int win_x, win_y;
 static Atom wmDeleteWindow;
 
-qboolean have_stencil = false;
-
 #define KEY_MASK (KeyPressMask | KeyReleaseMask)
 #define MOUSE_MASK (ButtonPressMask | ButtonReleaseMask | \
 		    PointerMotionMask | ButtonMotionMask )
@@ -251,6 +249,9 @@
 static cvar_t	*vid_ypos;			// Y coordinate of window position
 
 static qboolean	mlooking;
+
+// stencilbuffer shadows   
+qboolean have_stencil = false;
 
 // state struct passed in Init
 static in_state_t	*in_state;
diff -u -b -r -x postinstall -x preinstall -x preremove -x postremove -x CVS -x prototype src/solaris/rw_xil.c /usr/local/src/quake2-r0.0.14.3/src/solaris/rw_xil.c
--- src/solaris/rw_xil.c	Tue Oct  8 22:54:27 2002
+++ /usr/local/src/quake2-r0.0.14.3/src/solaris/rw_xil.c	Wed Sep 25 21:12:12 2002
@@ -45,7 +45,7 @@
 
 
 static qboolean X11_active = false;
-qboolean have_stencil = false;
+
 struct
 {
   int key;
@@ -103,6 +103,9 @@
 static cvar_t	*in_mouse;
 
 static qboolean	mlooking;
+
+// stencilbuffer shadows
+qboolean have_stencil = false;
 
 // state struct passed in Init
 static in_state_t	*in_state;


More information about the quake2 mailing list