radeon: Don't override NewFramebuffer just to call _mesa_new_framebuffer
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 6 Oct 2015 17:55:03 +0000 (10:55 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 6 Oct 2015 18:36:32 +0000 (11:36 -0700)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/mesa/drivers/dri/radeon/radeon_fbo.c

index 5eece518c95734bb95ed60cf5a64139add6b78d1..4d75d149b274631bb626ef1686a0941fb0c7079f 100644 (file)
                 printf(__VA_ARGS__);                      \
 } while(0)
 
-static struct gl_framebuffer *
-radeon_new_framebuffer(struct gl_context *ctx, GLuint name)
-{
-  return _mesa_new_framebuffer(ctx, name);
-}
-
 static void
 radeon_delete_renderbuffer(struct gl_context *ctx, struct gl_renderbuffer *rb)
 {
@@ -868,7 +862,6 @@ radeon_validate_framebuffer(struct gl_context *ctx, struct gl_framebuffer *fb)
 
 void radeon_fbo_init(struct radeon_context *radeon)
 {
-  radeon->glCtx.Driver.NewFramebuffer = radeon_new_framebuffer;
   radeon->glCtx.Driver.NewRenderbuffer = radeon_new_renderbuffer;
   radeon->glCtx.Driver.MapRenderbuffer = radeon_map_renderbuffer;
   radeon->glCtx.Driver.UnmapRenderbuffer = radeon_unmap_renderbuffer;