vbo: notify a driver that we change buffer offsets, strides, etc.
authorMarek Olšák <maraeo@gmail.com>
Mon, 27 Dec 2010 16:01:25 +0000 (17:01 +0100)
committerMarek Olšák <maraeo@gmail.com>
Mon, 14 Feb 2011 20:50:07 +0000 (21:50 +0100)
src/mesa/vbo/vbo_exec_draw.c
src/mesa/vbo/vbo_save_draw.c

index 87f6431056113706c524cd3b4db7c25a4e8cf282..f8be83ea84eb72106e8002bbcbb316a7d6f9618f 100644 (file)
@@ -245,6 +245,7 @@ vbo_exec_bind_arrays( struct gl_context *ctx )
         arrays[attr]._MaxElement = count; /* ??? */
 
          varying_inputs |= 1 << attr;
+         ctx->NewState |= _NEW_ARRAY;
       }
    }
 
index d0454bf6212da8bf8d03b0c47266cbe36235fd78..634a6d3f84b6725a9ccff0c8891da526bd4f54df 100644 (file)
@@ -202,6 +202,7 @@ static void vbo_bind_vertex_list(struct gl_context *ctx,
 
         buffer_offset += node->attrsz[src] * sizeof(GLfloat);
          varying_inputs |= 1<<attr;
+         ctx->NewState |= _NEW_ARRAY;
       }
    }