i915: 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:28:00 +0000 (11:28 -0700)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/drivers/dri/i915/intel_buffers.h
src/mesa/drivers/dri/i915/intel_fbo.c

index 42d84bcfcb757cf2da44dcfde8f4079bf976dc90..6e22f5125b956f8384b6e978b2c15ed7a2fe9580 100644 (file)
@@ -34,7 +34,6 @@
 #include "intel_context.h"
 
 struct intel_context;
-struct intel_framebuffer;
 
 extern void intel_check_front_buffer_rendering(struct intel_context *intel);
 
index 12cc7e3a71b42d4dec07e0b50931c04ea606139d..8750c601b849de69102e18dd7677f92bb96fef3f 100644 (file)
@@ -64,19 +64,6 @@ intel_get_rb_region(struct gl_framebuffer *fb, GLuint attIndex)
       return NULL;
 }
 
-/**
- * Create a new framebuffer object.
- */
-static struct gl_framebuffer *
-intel_new_framebuffer(struct gl_context * ctx, GLuint name)
-{
-   /* Only drawable state in intel_framebuffer at this time, just use Mesa's
-    * class
-    */
-   return _mesa_new_framebuffer(ctx, name);
-}
-
-
 /** Called by gl_renderbuffer::Delete() */
 static void
 intel_delete_renderbuffer(struct gl_context *ctx, struct gl_renderbuffer *rb)
@@ -770,7 +757,6 @@ intel_blit_framebuffer(struct gl_context *ctx,
 void
 intel_fbo_init(struct intel_context *intel)
 {
-   intel->ctx.Driver.NewFramebuffer = intel_new_framebuffer;
    intel->ctx.Driver.NewRenderbuffer = intel_new_renderbuffer;
    intel->ctx.Driver.MapRenderbuffer = intel_map_renderbuffer;
    intel->ctx.Driver.UnmapRenderbuffer = intel_unmap_renderbuffer;