vbo: don't call twice _mesa_valid_to_render in DrawArraysInstancedBaseInstance
authorMarek Olšák <maraeo@gmail.com>
Wed, 27 Jun 2012 03:45:47 +0000 (05:45 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 28 Jun 2012 20:46:51 +0000 (22:46 +0200)
It's called in _mesa_validate_DrawArraysInstanced already.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/vbo/vbo_exec_array.c

index 6f6a2983aedf27a205e6aa20e5f4531374e82ce0..b70ddb3004b250261802f0fbfa639efee9947421 100644 (file)
@@ -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)