summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/glide
diff options
context:
space:
mode:
authorDaniel Borca <dborca@users.sourceforge.net>2005-05-09 22:15:24 +0000
committerDaniel Borca <dborca@users.sourceforge.net>2005-05-09 22:15:24 +0000
commitfee163a61ac42e7ea00c8c7e708e0e879cc10ab0 (patch)
treee0a1732f33cedf97b727c128fb0a1c40caaf4a70 /src/mesa/drivers/glide
parent0e26580c903a9b8b5952feeaac2e579a309ebf31 (diff)
pathetic attempt to accomodate new frambuffer changes (still some work to do)
Diffstat (limited to 'src/mesa/drivers/glide')
-rw-r--r--src/mesa/drivers/glide/fxapi.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/mesa/drivers/glide/fxapi.c b/src/mesa/drivers/glide/fxapi.c
index e85a0f8730..e535e739b3 100644
--- a/src/mesa/drivers/glide/fxapi.c
+++ b/src/mesa/drivers/glide/fxapi.c
@@ -43,6 +43,7 @@
#include "fxdrv.h"
#include "drivers/common/driverfuncs.h"
+#include "framebuffer.h"
#ifndef TDFX_DEBUG
int TDFX_DEBUG = (0
@@ -678,11 +679,17 @@ fxMesaCreateContext(GLuint win,
}
- fxMesa->glBuffer = _mesa_create_framebuffer(fxMesa->glVis,
+ fxMesa->glBuffer = _mesa_create_framebuffer(fxMesa->glVis);
+#if 0
+/* XXX this is a complete mess :(
+ * _mesa_add_soft_renderbuffers
+ * driNewRenderbuffer
+ */
GL_FALSE, /* no software depth */
stencilSize && !fxMesa->haveHwStencil,
fxMesa->glVis->accumRedBits > 0,
alphaSize && !fxMesa->haveHwAlpha);
+#endif
if (!fxMesa->glBuffer) {
str = "_mesa_create_framebuffer";
goto errorhandler;
@@ -838,7 +845,7 @@ void GLAPIENTRY
fxMesaMakeCurrent(fxMesaContext fxMesa)
{
if (!fxMesa) {
- _mesa_make_current(NULL, NULL);
+ _mesa_make_current(NULL, NULL, NULL);
fxMesaCurrentCtx = NULL;
if (TDFX_DEBUG & VERBOSE_DRIVER) {
@@ -870,7 +877,7 @@ fxMesaMakeCurrent(fxMesaContext fxMesa)
grSstSelect(fxMesa->board);
grGlideSetState((GrState *) fxMesa->state);
- _mesa_make_current(fxMesa->glCtx, fxMesa->glBuffer);
+ _mesa_make_current(fxMesa->glCtx, fxMesa->glBuffer, fxMesa->glBuffer);
fxSetupDDPointers(fxMesa->glCtx);
}