From 67074332728acba86da7630353673b458713bb8a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 16 Sep 2005 21:15:27 +0000 Subject: Fix potential segfault when trying to read pixels outside renderbuffer bounds. Use _swrast_get_values() which does clipping. --- src/mesa/swrast/s_depth.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/mesa/swrast/s_depth.h') diff --git a/src/mesa/swrast/s_depth.h b/src/mesa/swrast/s_depth.h index 2229e8a22d..a5856151f0 100644 --- a/src/mesa/swrast/s_depth.h +++ b/src/mesa/swrast/s_depth.h @@ -1,6 +1,6 @@ /* * Mesa 3-D graphics library - * Version: 6.3 + * Version: 6.5 * * Copyright (C) 1999-2005 Brian Paul All Rights Reserved. * @@ -39,11 +39,6 @@ extern GLboolean _swrast_depth_bounds_test( GLcontext *ctx, struct sw_span *span ); -extern void -_swrast_read_depth_span( GLcontext *ctx, struct gl_renderbuffer *rb, - GLint n, GLint x, GLint y, GLuint depth[] ); - - extern void _swrast_read_depth_span_float( GLcontext *ctx, struct gl_renderbuffer *rb, GLint n, GLint x, GLint y, GLfloat depth[] ); -- cgit v1.2.3