radeon: use t->bo to figure out of settexbuffer override is in action

This commit is contained in:
Dave Airlie 2009-03-05 19:00:17 +10:00
parent eba8008916
commit 9d72a75917
2 changed files with 5 additions and 1 deletions

View file

@ -1408,6 +1408,10 @@ static void setup_hardware_state(r200ContextPtr rmesa, radeonTexObj *t)
t->base.Image[0][t->mt->firstLevel];
GLint log2Width, log2Height, log2Depth, texelBytes;
if ( t->bo ) {
return;
}
log2Width = firstImage->WidthLog2;
log2Height = firstImage->HeightLog2;
log2Depth = firstImage->DepthLog2;

View file

@ -1006,7 +1006,7 @@ static GLboolean setup_hardware_state(r100ContextPtr rmesa, radeonTexObj *t, int
const struct gl_texture_image *firstImage;
GLint log2Width, log2Height, log2Depth, texelBytes;
if ( t->image_override ) {
if ( t->bo ) {
return GL_TRUE;
}