diff options
Diffstat (limited to 'src/mesa/drivers/glide/fxapi.c')
-rw-r--r-- | src/mesa/drivers/glide/fxapi.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/mesa/drivers/glide/fxapi.c b/src/mesa/drivers/glide/fxapi.c index f348dd45bbc..8fa06952daa 100644 --- a/src/mesa/drivers/glide/fxapi.c +++ b/src/mesa/drivers/glide/fxapi.c @@ -818,21 +818,17 @@ fxMesaDestroyContext(fxMesaContext fxMesa) (unsigned) st.pixelsOut); } - /* [dBorca] - * close the hardware first, so we can debug - * atexit problems (memory leaks, etc). - * NB: fxDDDestroyFxMesaContext must be called - * before _mesa_destroy_context; which must be - * called before fxTMClose! + /* close the hardware first, + * so we can debug atexit problems (memory leaks, etc). */ grSstWinClose(fxMesa->glideContext); fxCloseHardware(); - fxDDDestroyFxMesaContext(fxMesa); + fxDDDestroyFxMesaContext(fxMesa); /* must be before _mesa_destroy_context */ _mesa_destroy_visual(fxMesa->glVis); _mesa_destroy_context(fxMesa->glCtx); _mesa_destroy_framebuffer(fxMesa->glBuffer); - fxTMClose(fxMesa); + fxTMClose(fxMesa); /* must be after _mesa_destroy_context */ FREE(fxMesa); |