[Mesa-dev] [PATCH 2/4] vbo: don't call twice _mesa_valid_to_render in DrawArraysInstancedBaseInstance
Marek Olšák
maraeo at gmail.com
Tue Jun 26 22:18:39 PDT 2012
It's called in _mesa_validate_DrawArraysInstanced already.
---
src/mesa/vbo/vbo_exec_array.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c
index ebf0085..e80a68b 100644
--- a/src/mesa/vbo/vbo_exec_array.c
+++ b/src/mesa/vbo/vbo_exec_array.c
@@ -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)
--
1.7.9.5
More information about the mesa-dev
mailing list