mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-21 13:18:09 +02:00
mesa: fix _mesa_max_texture_levels for GL_TEXTURE_EXTERNAL_OES
This helps fix:
piglit/bin/ext_image_dma_buf_import-sample_yuv -fmt=NV12 -auto
Fixes: d88f3392ff
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
e5db87b00b
commit
67b4785958
1 changed files with 1 additions and 1 deletions
|
|
@ -530,7 +530,7 @@ _mesa_max_texture_levels(const struct gl_context *ctx, GLenum target)
|
|||
&& ctx->Extensions.ARB_texture_multisample
|
||||
? 1 : 0;
|
||||
case GL_TEXTURE_EXTERNAL_OES:
|
||||
/* fall-through */
|
||||
return _mesa_has_OES_EGL_image_external(ctx) ? 1 : 0;
|
||||
default:
|
||||
return 0; /* bad target */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue