mesa: move declaration
authorAlan Hourihane <alanh@tungstengraphics.com>
Fri, 12 Dec 2008 20:37:21 +0000 (20:37 +0000)
committerAlan Hourihane <alanh@tungstengraphics.com>
Fri, 12 Dec 2008 20:37:21 +0000 (20:37 +0000)
src/mesa/state_tracker/st_draw.c

index 887358be6239a72dfbbaa604ad8bf09b499d4c1a..bac84a4dba99d6239bb4025f31c4fc7ae6b1dc64 100644 (file)
@@ -364,11 +364,12 @@ setup_interleaved_attribs(GLcontext *ctx,
       struct gl_buffer_object *bufobj = arrays[mesaAttr]->BufferObj;
       struct st_buffer_object *stobj = st_buffer_object(bufobj);
       GLsizei stride = arrays[mesaAttr]->StrideB;
-      const GLubyte *low, *high;
 
       /*printf("stobj %u = %p\n", attr, (void*)stobj);*/
 
       if (attr == 0) {
+         const GLubyte *low, *high;
+
          get_arrays_bounds(vp, arrays, max_index, &low, &high);
          /*printf("buffer range: %p %p  %d\n", low, high, high-low);*/