st/mesa: remove unused var
authorBrian Paul <brianp@vmware.com>
Fri, 12 Feb 2010 21:46:10 +0000 (14:46 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 12 Feb 2010 22:42:10 +0000 (15:42 -0700)
src/mesa/state_tracker/st_cb_drawpixels.c

index 2a084ca577972db030be40b9998c3b3f61fd9ada..af2647fea38174c2548cf01b7fb04bcd07fd07d0 100644 (file)
@@ -767,7 +767,6 @@ st_DrawPixels(GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height,
    struct st_fragment_program *stfp;
    void *driver_vp;
    struct st_context *st = st_context(ctx);
-   struct pipe_surface *ps;
    const GLfloat *color;
 
    if (format == GL_STENCIL_INDEX ||
@@ -783,13 +782,11 @@ st_DrawPixels(GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height,
    st_validate_state(st);
 
    if (format == GL_DEPTH_COMPONENT) {
-      ps = st->state.framebuffer.zsbuf;
       stfp = make_fragment_shader_z(st);
       driver_vp = st_make_passthrough_vertex_shader(st, GL_TRUE);
       color = ctx->Current.RasterColor;
    }
    else {
-      ps = st->state.framebuffer.cbufs[0];
       stfp = combined_drawpix_fragment_program(ctx);
       driver_vp = st_make_passthrough_vertex_shader(st, GL_FALSE);
       color = NULL;