mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 09:48:07 +02:00
mesa: simplify att->CubeMapFace assignment
This commit is contained in:
parent
346250b190
commit
26f1ad65b9
1 changed files with 1 additions and 6 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue