summaryrefslogtreecommitdiff
path: root/src/mesa/main/fbobject.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-10-23 18:15:55 -0600
committerBrian Paul <brianp@vmware.com>2009-10-23 18:31:03 -0600
commit26f1ad65b988fe55ae12a99994e4c63aaab899a0 (patch)
treef761b37ff5400daaa105436ec0c215611a4aaec6 /src/mesa/main/fbobject.c
parent346250b190b023b6fbd2bde5ce3ad94a8d544e20 (diff)
mesa: simplify att->CubeMapFace assignment
Diffstat (limited to 'src/mesa/main/fbobject.c')
-rw-r--r--src/mesa/main/fbobject.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index 18f6cec91e..85d3d3db99 100644
--- a/src/mesa/main/fbobject.c
+++ b/src/mesa/main/fbobject.c
@@ -240,12 +240,7 @@ _mesa_set_texture_attachment(GLcontext *ctx,
/* always update these fields */
att->TextureLevel = level;
- if (IS_CUBE_FACE(texTarget)) {
- att->CubeMapFace = texTarget - GL_TEXTURE_CUBE_MAP_POSITIVE_X;
- }
- else {
- att->CubeMapFace = 0;
- }
+ att->CubeMapFace = _mesa_tex_target_to_face(texTarget);
att->Zoffset = zoffset;
att->Complete = GL_FALSE;