diff options
author | Eric Anholt <[email protected]> | 2013-05-10 13:36:04 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-05-17 13:04:04 -0700 |
commit | 7b085d1bfa7630571e04a7d630765d3e5ed63e25 (patch) | |
tree | d93ea7a9289c52ab9c9c6c7ca3e69902ec34016a /src/mesa/drivers/dri/radeon/radeon_fbo.c | |
parent | c810e67c55a8a2965b730317873fbdcc186a7514 (diff) |
radeon: Remove dead radeon_wrap_texture().
I should have killed this in my previous cleanup.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/radeon/radeon_fbo.c')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_fbo.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_fbo.c b/src/mesa/drivers/dri/radeon/radeon_fbo.c index e546a6b365c..c43f527d222 100644 --- a/src/mesa/drivers/dri/radeon/radeon_fbo.c +++ b/src/mesa/drivers/dri/radeon/radeon_fbo.c @@ -782,36 +782,6 @@ radeon_update_wrapper(struct gl_context *ctx, struct radeon_renderbuffer *rrb, return GL_TRUE; } - -static struct radeon_renderbuffer * -radeon_wrap_texture(struct gl_context * ctx, struct gl_texture_image *texImage) -{ - const GLuint name = ~0; /* not significant, but distinct for debugging */ - struct radeon_renderbuffer *rrb; - - /* make an radeon_renderbuffer to wrap the texture image */ - rrb = CALLOC_STRUCT(radeon_renderbuffer); - - radeon_print(RADEON_TEXTURE, RADEON_TRACE, - "%s(%p, rrb %p, texImage %p) \n", - __func__, ctx, rrb, texImage); - - if (!rrb) { - _mesa_error(ctx, GL_OUT_OF_MEMORY, "glFramebufferTexture"); - return NULL; - } - - _mesa_init_renderbuffer(&rrb->base.Base, name); - rrb->base.Base.ClassID = RADEON_RB_CLASS; - - if (!radeon_update_wrapper(ctx, rrb, texImage)) { - free(rrb); - return NULL; - } - - return rrb; - -} static void radeon_render_texture(struct gl_context * ctx, struct gl_framebuffer *fb, |