OSDN Git Service

Merge branch 'vbo_clean'
authorMaciej Cencora <m.cencora@gmail.com>
Fri, 14 Aug 2009 22:52:44 +0000 (00:52 +0200)
committerMaciej Cencora <m.cencora@gmail.com>
Fri, 14 Aug 2009 22:52:44 +0000 (00:52 +0200)
Conflicts:
src/mesa/drivers/dri/r300/r300_draw.c

1  2 
src/mesa/drivers/dri/r300/r300_draw.c

@@@ -466,23 -607,8 +608,15 @@@ static void r300DrawPrims(GLcontext *ct
                         GLuint min_index,
                         GLuint max_index)
  {
-       struct split_limits limits;
        GLboolean retval;
  
-       if (ib)
-               limits.max_verts = 0xffffffff;
-       else
-               limits.max_verts = 65535;
-       limits.max_indices = 65535;
-       limits.max_vb_size = 1024*1024;
 +      /* This check should get folded into just the places that
 +       * min/max index are really needed.
 +       */
-       if (!index_bounds_valid)
-          vbo_get_minmax_index(ctx, prim, ib, &min_index, &max_index);
++      if (!index_bounds_valid) {
++              vbo_get_minmax_index(ctx, prim, ib, &min_index, &max_index);
++      }
 +
        if (min_index) {
                vbo_rebase_prims( ctx, arrays, prim, nr_prims, ib, min_index, max_index, r300DrawPrims );
                return;