mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
mesa: fix remaining xfb prims check for GLES with multiple instances
Found by inspection. Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
2284d6bf7a
commit
ea9a8940ca
1 changed files with 1 additions and 1 deletions
|
|
@ -865,7 +865,7 @@ validate_draw_arrays(struct gl_context *ctx, const char *func,
|
|||
if (_mesa_is_gles3(ctx) && _mesa_is_xfb_active_and_unpaused(ctx) &&
|
||||
!_mesa_has_OES_geometry_shader(ctx) &&
|
||||
!_mesa_has_OES_tessellation_shader(ctx)) {
|
||||
size_t prim_count = vbo_count_tessellated_primitives(mode, count, 1);
|
||||
size_t prim_count = vbo_count_tessellated_primitives(mode, count, numInstances);
|
||||
if (xfb_obj->GlesRemainingPrims < prim_count) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION,
|
||||
"%s(exceeds transform feedback size)", func);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue