mesa: Remove unnecessary -f from $(RM).
[mesa.git] / src / mesa / state_tracker / st_cb_readpixels.c
index 3f7bbd9738cb33310a29fa08e139472d24ab1567..d95a608d32e47bf72d02e737350864c54b0fe02c 100644 (file)
@@ -143,7 +143,7 @@ st_readpixels(struct gl_context *ctx, GLint x, GLint y,
 
    /* Choose the destination format by finding the best match
     * for the format+type combo. */
-   dst_format = st_choose_matching_format(screen, bind, format, type,
+   dst_format = st_choose_matching_format(st, bind, format, type,
                                           pack->SwapBytes);
    if (dst_format == PIPE_FORMAT_NONE) {
       goto fallback;