mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
mesa/st: use fallback path when pipe->clear_texture is not available
Signed-off-by: Italo Nicola <italonicola@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23735>
This commit is contained in:
parent
2594436c7a
commit
29a64f677a
1 changed files with 7 additions and 1 deletions
|
|
@ -3689,7 +3689,13 @@ st_ClearTexSubImage(struct gl_context *ctx,
|
|||
|
||||
assert(level <= pt->last_level);
|
||||
|
||||
pipe->clear_texture(pipe, pt, level, &box, clearValue ? clearValue : zeros);
|
||||
if (pipe->clear_texture) {
|
||||
pipe->clear_texture(pipe, pt, level, &box,
|
||||
clearValue ? clearValue : zeros);
|
||||
} else {
|
||||
u_default_clear_texture(pipe, pt, level, &box,
|
||||
clearValue ? clearValue : zeros);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue