summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorMiklos Fazekas <boga@valerie.inf.elte.hu>1999-10-05 18:40:17 +0000
committerMiklos Fazekas <boga@valerie.inf.elte.hu>1999-10-05 18:40:17 +0000
commitd598ca05e16f9f4a2dece36f79cae0941692d4c0 (patch)
tree2522b12a3af1902c6f69f9498ed303a0c2dee575 /src/mesa/drivers
parent08a454c7afaf9427ce9ca32b11df0fee111ed883 (diff)
Minor cleanup.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/glide/fxapi.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mesa/drivers/glide/fxapi.c b/src/mesa/drivers/glide/fxapi.c
index fbc586e757..2d16048e49 100644
--- a/src/mesa/drivers/glide/fxapi.c
+++ b/src/mesa/drivers/glide/fxapi.c
@@ -824,7 +824,7 @@ fxMesaContext GLAPIENTRY fxMesaCreateContext(GLuint win,GrScreenResolution_t res
GrScreenRefresh_t ref,
const GLint attribList[])
{
- fxMesaContext fxMesa;
+ fxMesaContext fxMesa = NULL;
int i,type;
int aux;
GLboolean doubleBuffer=GL_FALSE;
@@ -1131,7 +1131,7 @@ errorhandler:
if (fxMesa->state)
free(fxMesa->state);
- if (fxMesa && fxMesa->fogTable)
+ if (fxMesa->fogTable)
free(fxMesa->fogTable);
if (fxMesa->glBuffer)
gl_destroy_framebuffer(fxMesa->glBuffer);
@@ -1141,11 +1141,7 @@ errorhandler:
gl_destroy_context(fxMesa->glCtx);
free(fxMesa);
}
-
-
-
-
-
+
if (MESA_VERBOSE&VERBOSE_DRIVER) {
fprintf(stderr,"fxmesa: fxMesaCreateContext() End (%s)\n",errorstr);
}