This patch works around a crash in update_tex_common() with amoeba. I
suspect this is just a band aid for the real problem though.

amoeba also exhibits lots of missing textures with HW TCL with both
Radeon 3D drivers.


-- 
Earthling Michel Dänzer   \  Debian (powerpc), XFree86 and DRI developer
Software libre enthusiast  \     http://svcs.affero.net/rm.php?r=daenzer
Index: lib/GL/mesa/src/drv/r200/r200_texstate.c
===================================================================
RCS file: /cvsroot/dri/xc/xc/lib/GL/mesa/src/drv/r200/r200_texstate.c,v
retrieving revision 1.19
diff -p -u -r1.19 r200_texstate.c
--- lib/GL/mesa/src/drv/r200/r200_texstate.c	26 Aug 2003 15:43:59 -0000	1.19
+++ lib/GL/mesa/src/drv/r200/r200_texstate.c	7 Sep 2003 15:36:24 -0000
@@ -1651,6 +1651,9 @@ static GLboolean update_tex_common( GLco
    r200TexObjPtr t = (r200TexObjPtr) tObj->DriverData;
    GLenum format;
 
+   if ( !tObj->Image[tObj->BaseLevel] )
+      return GL_FALSE;
+
    /* Fallback if there's a texture border */
    if ( tObj->Image[tObj->BaseLevel]->Border > 0 )
        return GL_FALSE;

Reply via email to