diff options
author | Brian Paul <[email protected]> | 2008-05-08 17:45:59 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-05-08 17:45:59 -0600 |
commit | f9e2f26df3c16eaa0c56db11cd94b5af7a361ee8 (patch) | |
tree | 2e46c98175124b8f48e7663c14e489cba3248f7b /src/mesa/state_tracker | |
parent | 2f07e1caa02c9dcdddc673e61eb91b83b82d283b (diff) |
gallium: re-enable call to init_renderbuffer_bits(), remove dead code
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_cb_fbo.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c index 2368c31f4b4..3e592730f83 100644 --- a/src/mesa/state_tracker/st_cb_fbo.c +++ b/src/mesa/state_tracker/st_cb_fbo.c @@ -398,22 +398,9 @@ st_render_texture(GLcontext *ctx, pipe_surface_reference(&strb->surface, NULL); -#if 0 - /* the renderbuffer's surface is inside the texture */ - strb->surface = screen->get_tex_surface(screen, pt, - att->CubeMapFace, - att->TextureLevel /*- att->Texture->BaseLevel*/, - att->Zoffset, - PIPE_BUFFER_USAGE_GPU_READ | - PIPE_BUFFER_USAGE_GPU_WRITE); - printf("***** surface size: %d x %d\n", strb->surface->width, strb->surface->height); - - assert(strb->surface); - assert(screen->is_format_supported(screen, strb->surface->format, PIPE_TEXTURE)); - assert(screen->is_format_supported(screen, strb->surface->format, PIPE_SURFACE)); + /* the new surface will be created during framebuffer validation */ init_renderbuffer_bits(strb, pt->format); -#endif /* printf("RENDER TO TEXTURE obj=%p pt=%p surf=%p %d x %d\n", |