mesa: added _mesa_get_attachment_teximage() helpers

This commit is contained in:
Brian Paul
2011-04-05 07:51:01 -06:00
parent e9375cd0e8
commit db0f9e701d
6 changed files with 31 additions and 14 deletions

View File

@@ -2251,7 +2251,7 @@ check_rtt_cb(GLuint key, void *data, void *userData)
att->Texture == texObj &&
att->TextureLevel == level &&
att->CubeMapFace == face) {
ASSERT(att->Texture->Image[att->CubeMapFace][att->TextureLevel]);
ASSERT(_mesa_get_attachment_teximage(att));
/* Tell driver about the new renderbuffer texture */
ctx->Driver.RenderTexture(ctx, ctx->DrawBuffer, att);
/* Mark fb status as indeterminate to force re-validation */