st/mesa: remove gl_renderbuffer::GetPointer stuff
authorBrian Paul <brianp@vmware.com>
Mon, 16 Jan 2012 18:38:46 +0000 (11:38 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 24 Jan 2012 21:12:16 +0000 (14:12 -0700)
src/mesa/state_tracker/st_cb_fbo.c

index b01f68fe096b976ecf9bd94ad22529bfbf218c73..fefd93a4b3c106856ae73a809cef101bbd06c36c 100644 (file)
@@ -184,23 +184,6 @@ st_renderbuffer_delete(struct gl_renderbuffer *rb)
 }
 
 
-/**
- * gl_renderbuffer::GetPointer()
- */
-static void *
-null_get_pointer(struct gl_context * ctx, struct gl_renderbuffer *rb,
-                 GLint x, GLint y)
-{
-   /* By returning NULL we force all software rendering to go through
-    * the span routines.
-    */
-#if 0
-   assert(0);  /* Should never get called with softpipe */
-#endif
-   return NULL;
-}
-
-
 /**
  * Called via ctx->Driver.NewFramebuffer()
  */
@@ -223,7 +206,6 @@ st_new_renderbuffer(struct gl_context *ctx, GLuint name)
       _mesa_init_renderbuffer(&strb->Base, name);
       strb->Base.Delete = st_renderbuffer_delete;
       strb->Base.AllocStorage = st_renderbuffer_alloc_storage;
-      strb->Base.GetPointer = null_get_pointer;
       strb->format = PIPE_FORMAT_NONE;
       return &strb->Base;
    }
@@ -307,7 +289,6 @@ st_new_renderbuffer_fb(enum pipe_format format, int samples, boolean sw)
    /* st-specific methods */
    strb->Base.Delete = st_renderbuffer_delete;
    strb->Base.AllocStorage = st_renderbuffer_alloc_storage;
-   strb->Base.GetPointer = null_get_pointer;
 
    /* surface is allocated in st_renderbuffer_alloc_storage() */
    strb->surface = NULL;