summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-04-13 20:53:17 +0200
committerEmil Velikov <[email protected]>2017-04-24 13:11:13 +0100
commit24c05c57e45be807ee7af9764b593509b60455d5 (patch)
tree1f5304f0454d840216d5e136659795a6ec804bdf /src/mesa
parent7ae90b4f65587c353caf57aef6175d9c996eb2c1 (diff)
mesa: fix remaining xfb prims check for GLES with multiple instances
Found by inspection. Cc: [email protected] Reviewed-by: Timothy Arceri <[email protected]> Reviewed-by: Marek Olšák <[email protected]> (cherry picked from commit ea9a8940cadb30ac8d72a26b82bdb54872c0e199)
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/api_validate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c
index af4f7cb4bf3..8f834324ad4 100644
--- a/src/mesa/main/api_validate.c
+++ b/src/mesa/main/api_validate.c
@@ -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);