diff options
Diffstat (limited to 'src/mesa/main/texobj.c')
| -rw-r--r-- | src/mesa/main/texobj.c | 13 | 
1 files changed, 6 insertions, 7 deletions
| diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index da55ac8697..aaccc03a7c 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -29,12 +29,11 @@  #include "mfeatures.h" -#if FEATURE_colortable  #include "colortab.h" -#endif  #include "context.h"  #include "enums.h"  #include "fbobject.h" +#include "formats.h"  #include "hash.h"  #include "imports.h"  #include "macros.h" @@ -194,9 +193,7 @@ _mesa_delete_texture_object( GLcontext *ctx, struct gl_texture_object *texObj )      */     texObj->Target = 0x99; -#if FEATURE_colortable     _mesa_free_colortable_data(&texObj->Palette); -#endif     /* free the texture images */     for (face = 0; face < 6; face++) { @@ -495,7 +492,7 @@ _mesa_test_texobj_completeness( const GLcontext *ctx,  	     t->Image[face][baseLevel]->Width2 != w ||  	     t->Image[face][baseLevel]->Height2 != h) {  	    t->_Complete = GL_FALSE; -	    incomplete(t, "Non-quare cubemap image"); +	    incomplete(t, "Cube face missing or mismatched size");  	    return;  	 }        } @@ -744,6 +741,10 @@ _mesa_get_fallback_texture(GLcontext *ctx)        _mesa_init_teximage_fields(ctx, GL_TEXTURE_2D, texImage,                                      8, 8, 1, 0, GL_RGBA);  +      texImage->TexFormat = +         ctx->Driver.ChooseTextureFormat(ctx, GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE); +      ASSERT(texImage->TexFormat != MESA_FORMAT_NONE); +        /* set image data */        ctx->Driver.TexImage2D(ctx, GL_TEXTURE_2D, 0, GL_RGBA,                               8, 8, 0, @@ -1102,8 +1103,6 @@ _mesa_PrioritizeTextures( GLsizei n, const GLuint *texName,           struct gl_texture_object *t = _mesa_lookup_texture(ctx, texName[i]);           if (t) {              t->Priority = CLAMP( priorities[i], 0.0F, 1.0F ); -	    if (ctx->Driver.PrioritizeTexture) -	       ctx->Driver.PrioritizeTexture( ctx, t, t->Priority );           }        }     } | 
