mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
mesa/st: use _mesa_is_zero_size_texture-helper
No need to repeat the logic. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26418>
This commit is contained in:
parent
3123e4ffeb
commit
a8b68badd5
1 changed files with 1 additions and 1 deletions
|
|
@ -2355,7 +2355,7 @@ st_TexImage(struct gl_context * ctx, GLuint dims,
|
|||
|
||||
prep_teximage(ctx, texImage, format, type);
|
||||
|
||||
if (texImage->Width == 0 || texImage->Height == 0 || texImage->Depth == 0)
|
||||
if (_mesa_is_zero_size_texture(texImage))
|
||||
return;
|
||||
|
||||
/* allocate storage for texture data */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue