diff options
author | Brian Paul <[email protected]> | 2011-04-05 07:51:01 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-04-05 07:51:01 -0600 |
commit | db0f9e701d59dcfcd3b50f4d245897692f27fec9 (patch) | |
tree | 7ac61092cbfc0a9a76ee66ca244fb804e9ddd611 /src/mesa/state_tracker/st_cb_fbo.c | |
parent | e9375cd0e895ac2c3e7ff17f18da7a7f8cd3a82d (diff) |
mesa: added _mesa_get_attachment_teximage() helpers
Diffstat (limited to 'src/mesa/state_tracker/st_cb_fbo.c')
-rw-r--r-- | src/mesa/state_tracker/st_cb_fbo.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c index 7ffee901cdb..e632d816542 100644 --- a/src/mesa/state_tracker/st_cb_fbo.c +++ b/src/mesa/state_tracker/st_cb_fbo.c @@ -353,7 +353,7 @@ st_render_texture(struct gl_context *ctx, return; /* get pointer to texture image we're rendeing to */ - texImage = att->Texture->Image[att->CubeMapFace][att->TextureLevel]; + texImage = _mesa_get_attachment_teximage(att); /* create new renderbuffer which wraps the texture image */ rb = st_new_renderbuffer(ctx, 0); @@ -471,8 +471,7 @@ st_validate_attachment(struct gl_context *ctx, return GL_FALSE; format = stObj->pt->format; - texFormat = - stObj->base.Image[att->CubeMapFace][att->TextureLevel]->TexFormat; + texFormat = _mesa_get_attachment_teximage_const(att)->TexFormat; /* If the encoding is sRGB and sRGB rendering cannot be enabled, * check for linear format support instead. |