mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
mesa: skip level checking for FramebufferTexture*D if texture is zero
From the OpenGL 4.5 core spec: "An INVALID_VALUE error is generated if texture is not zero and level is not a supported texture level for textarget, as described above." Other FramebufferTexture functions already do the right thing. This fixes the main menu in F1 2015. Cc: 11.1 11.2 <mesa-stable@lists.freedesktop.org> Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
60341ddd5c
commit
04a78068ff
1 changed files with 3 additions and 3 deletions
|
|
@ -3240,10 +3240,10 @@ framebuffer_texture_with_dims(int dims, GLenum target,
|
|||
|
||||
if ((dims == 3) && !check_layer(ctx, texObj->Target, layer, caller))
|
||||
return;
|
||||
}
|
||||
|
||||
if (!check_level(ctx, textarget, level, caller))
|
||||
return;
|
||||
if (!check_level(ctx, textarget, level, caller))
|
||||
return;
|
||||
}
|
||||
|
||||
_mesa_framebuffer_texture(ctx, fb, attachment, texObj, textarget, level,
|
||||
layer, GL_FALSE, caller);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue