XXX comments about some hard-coded values that need to be fixed
authorBrian <brian.paul@tungstengraphics.com>
Tue, 11 Dec 2007 00:25:54 +0000 (17:25 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 11 Dec 2007 00:32:43 +0000 (17:32 -0700)
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/state_tracker/st_draw.c

index 6e9e7e3a24854aeec5da28ddf780edea102d8bca..ef6aec6e88efcc5951311330e5c05e01dc91f63f 100644 (file)
@@ -120,6 +120,7 @@ st_renderbuffer_alloc_storage(GLcontext * ctx, struct gl_renderbuffer *rb,
       pipe->winsys->buffer_reference(pipe->winsys, &strb->surface->buffer,
                                     NULL);
 
+   /* XXX don't hard-code magic 32 here */
    strb->surface->buffer = pipe->winsys->buffer_create(pipe->winsys, 32, 0, 0);
    if (!strb->surface->buffer)
       return GL_FALSE; /* out of memory, try s/w buffer? */
index 24bb4823bc9ea1af429cbf043eac1dc352d9019c..274ae86a3ecb33cbc04606309ae6474d5c3ef7f3 100644 (file)
@@ -199,6 +199,7 @@ static void
 create_default_attribs_buffer(struct st_context *st)
 {
    struct pipe_context *pipe = st->pipe;
+   /* XXX don't hardcode magic 32 here */
    st->default_attrib_buffer = pipe->winsys->buffer_create( pipe->winsys, 32, 0, 0 );
 }