mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 07:20:10 +01:00
mesa: clear TransformFeedback.NumVarying on error
The memory is freed before trying to reallocate it. If the alloc fails, NumVarying should be updated to 0. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37331>
This commit is contained in:
parent
1110763d7b
commit
66aefea02b
1 changed files with 1 additions and 0 deletions
|
|
@ -884,6 +884,7 @@ transform_feedback_varyings(struct gl_context *ctx,
|
|||
|
||||
if (!shProg->TransformFeedback.VaryingNames) {
|
||||
_mesa_error(ctx, GL_OUT_OF_MEMORY, "glTransformFeedbackVaryings()");
|
||||
shProg->TransformFeedback.NumVarying = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue