mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
vbo: don't call twice _mesa_valid_to_render in DrawArraysInstancedBaseInstance
It's called in _mesa_validate_DrawArraysInstanced already. Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
15ac66e331
commit
d9eb1a1225
1 changed files with 2 additions and 5 deletions
|
|
@ -724,13 +724,10 @@ vbo_exec_DrawArraysInstancedBaseInstance(GLenum mode, GLint first, GLsizei count
|
|||
_mesa_lookup_enum_by_nr(mode), first, count,
|
||||
numInstances, baseInstance);
|
||||
|
||||
if (!_mesa_validate_DrawArraysInstanced(ctx, mode, first, count,
|
||||
numInstances))
|
||||
return;
|
||||
|
||||
FLUSH_CURRENT(ctx, 0);
|
||||
|
||||
if (!_mesa_valid_to_render(ctx, "glDrawArraysInstancedBaseInstance"))
|
||||
if (!_mesa_validate_DrawArraysInstanced(ctx, mode, first, count,
|
||||
numInstances))
|
||||
return;
|
||||
|
||||
if (0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue