From 34ce1a850236b94186f73c24a7ddb0f18075eb94 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 7 Nov 2013 17:28:33 -0700 Subject: svga: improve loops over color buffers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only loop over the actual number of color buffers supported, not PIPE_MAX_COLOR_BUFS. Reviewed-by: José Fonseca --- src/gallium/drivers/svga/svga_screen.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers/svga/svga_screen.h') diff --git a/src/gallium/drivers/svga/svga_screen.h b/src/gallium/drivers/svga/svga_screen.h index 0606147dd20..517a3fa844a 100644 --- a/src/gallium/drivers/svga/svga_screen.h +++ b/src/gallium/drivers/svga/svga_screen.h @@ -48,6 +48,7 @@ struct svga_screen SVGA3dHardwareVersion hw_version; float maxPointSize; + unsigned max_color_buffers; struct { boolean force_level_surface_view; -- cgit v1.2.3