mesa: remove gl_framebuffer:_DepthBuffer, _StencilBuffer fields
authorBrian Paul <brianp@vmware.com>
Fri, 6 Jan 2012 19:42:40 +0000 (12:42 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 6 Jan 2012 21:00:34 +0000 (14:00 -0700)
These were used by swrast to make a combined depth+stencil buffer look
like separate depth and stencil buffers.  But that's no longer needed
after rewriting the depth/stencil code in swrast.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/framebuffer.c
src/mesa/main/mtypes.h

index 6d5e4524a96f1fce28fc8c05a26fcde254c500a3..730de620611332c6d760cd34477145f98bbae958 100644 (file)
@@ -222,10 +222,6 @@ _mesa_free_framebuffer_data(struct gl_framebuffer *fb)
       ASSERT(!att->Texture);
       att->Type = GL_NONE;
    }
-
-   /* unbind _Depth/_StencilBuffer to decr ref counts */
-   _mesa_reference_renderbuffer(&fb->_DepthBuffer, NULL);
-   _mesa_reference_renderbuffer(&fb->_StencilBuffer, NULL);
 }
 
 
@@ -681,8 +677,6 @@ update_color_read_buffer(struct gl_context *ctx, struct gl_framebuffer *fb)
  *    _ColorDrawBuffers
  *    _NumColorDrawBuffers
  *    _ColorReadBuffer
- *    _DepthBuffer
- *    _StencilBuffer
  *
  * If the framebuffer is user-created, make sure it's complete.
  *
index dcb987116d2abe92626717fc812dea4d62ba91cb..64d8c8d3f71982e6d3a769d870ff29e640f0a198 100644 (file)
@@ -2673,12 +2673,6 @@ struct gl_framebuffer
    struct gl_renderbuffer *_ColorDrawBuffers[MAX_DRAW_BUFFERS];
    struct gl_renderbuffer *_ColorReadBuffer;
 
-   /** Wrappers to make combined depth/stencil buffers look like separate
-    * buffers.  Only used by swrast.  Will be removed in the future.
-    */
-   struct gl_renderbuffer *_DepthBuffer;
-   struct gl_renderbuffer *_StencilBuffer;
-
    /** Delete this framebuffer */
    void (*Delete)(struct gl_framebuffer *fb);
 };