diff options
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/osmesa/osmesa.c | 4 | ||||
-rw-r--r-- | src/mesa/drivers/x11/xm_dd.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c index ff84b34da4..e453f4127b 100644 --- a/src/mesa/drivers/osmesa/osmesa.c +++ b/src/mesa/drivers/osmesa/osmesa.c @@ -1,4 +1,4 @@ -/* $Id: osmesa.c,v 1.52 2001/03/29 17:15:21 brianp Exp $ */ +/* $Id: osmesa.c,v 1.53 2001/04/04 21:54:21 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -46,6 +46,7 @@ #include "mem.h" #include "mmath.h" #include "mtypes.h" +#include "texformat.h" #include "texstore.h" #include "array_cache/acache.h" #include "swrast/swrast.h" @@ -1786,6 +1787,7 @@ static void osmesa_update_state( GLcontext *ctx, GLuint new_state ) ctx->Driver.DrawPixels = _swrast_DrawPixels; ctx->Driver.ReadPixels = _swrast_ReadPixels; + ctx->Driver.ChooseTextureFormat = _mesa_choose_tex_format; ctx->Driver.TexImage1D = _mesa_store_teximage1d; ctx->Driver.TexImage2D = _mesa_store_teximage2d; ctx->Driver.TexImage3D = _mesa_store_teximage3d; diff --git a/src/mesa/drivers/x11/xm_dd.c b/src/mesa/drivers/x11/xm_dd.c index 0371d3a9cc..e2c9e80e94 100644 --- a/src/mesa/drivers/x11/xm_dd.c +++ b/src/mesa/drivers/x11/xm_dd.c @@ -1,4 +1,4 @@ -/* $Id: xm_dd.c,v 1.21 2001/04/03 17:35:54 brianp Exp $ */ +/* $Id: xm_dd.c,v 1.22 2001/04/04 21:54:21 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -35,6 +35,7 @@ #include "mtypes.h" #include "state.h" #include "texstore.h" +#include "texformat.h" #include "xmesaP.h" #include "array_cache/acache.h" #include "swrast/swrast.h" @@ -952,6 +953,7 @@ void xmesa_init_pointers( GLcontext *ctx ) /* Software texture functions: */ + ctx->Driver.ChooseTextureFormat = _mesa_choose_tex_format; ctx->Driver.TexImage1D = _mesa_store_teximage1d; ctx->Driver.TexImage2D = _mesa_store_teximage2d; ctx->Driver.TexImage3D = _mesa_store_teximage3d; |