Mark Nipper wrote:
        I was hoping the following patch might be applied to
maintain backwards compatibility with glide2 libraries.  Thanks.
Just working around some of Hans' work.  :)



------------------------------------------------------------------------

--- xmame-0.87/src/unix/video-drivers/fxgen.c.orig 2004-10-28 04:50:08.000000000 -0500
+++ xmame-0.87/src/unix/video-drivers/fxgen.c 2004-10-28 04:57:56.000000000 -0500
@@ -47,7 +47,9 @@
static GrTexInfo texinfo;
static int bilinear=1; /* Do binlinear filtering? */
static const int texsize=256;
+#ifdef GLIDE3
static GrContext_t context=0;
+#endif
/* The squares that are tiled to make up the game screen polygon */
@@ -453,8 +455,13 @@
grSstSelect(0);
+#ifdef GLIDE3
if(!(context = grSstWinOpen(0,Gr_resolution,GR_REFRESH_60Hz,GR_COLORFORMAT_ABGR,
GR_ORIGIN_LOWER_LEFT,2,1)))
+#else
+ if(!grSstWinOpen(0,Gr_resolution,GR_REFRESH_60Hz,GR_COLORFORMAT_ABGR,
+ GR_ORIGIN_LOWER_LEFT,2,1))
+#endif
{
fprintf(stderr_file, "error opening Glide window, do you have enough memory on your 3dfx for the selected mode?\n");
return OSD_NOT_OK;
@@ -510,11 +517,16 @@
texgrid = NULL;
}
+#ifdef GLIDE3
if (context)
{
grSstWinClose(context);
context = 0;
}
+#else
+ grGlideShutdown();
+#endif
+
}

This is already fixed in CVS. Next time if you hit a problem please fix it by creating a macro in fxcompat.h. That is where the glide2 / 3 difference abstraction is handled.


Regards,

Hans





_______________________________________________
Xmame mailing list
[EMAIL PROTECTED]
http://toybox.twisted.org.uk/mailman/listinfo/xmame

Reply via email to