From e7c26964eef6732c9603b26b7396f95443c5ba8a Mon Sep 17 00:00:00 2001 From: George Peter Staplin Date: Fri, 24 Oct 2008 19:12:05 -0600 Subject: [PATCH] XQuartz: GL: Fix several error handling mistakes in handleRenderDescriptions, that were leftover before the final code evolved. (cherry picked from commit fe35a3639081dc78ac6cc4123cde37770f6a39fd) --- hw/xquartz/GL/capabilities.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xquartz/GL/capabilities.c b/hw/xquartz/GL/capabilities.c index 8101e49a5..b38dba825 100644 --- a/hw/xquartz/GL/capabilities.c +++ b/hw/xquartz/GL/capabilities.c @@ -285,7 +285,7 @@ static void handleAccumulationModes(struct glCapabilitiesConfig *c, GLint cmodes assert(c->total_accum_buffers < GLCAPS_COLOR_BUFFERS); } -/* Return true if an error occured. */ +/* Return non-zero if an error occured. */ static CGLError handleRendererDescriptions(CGLRendererInfoObj info, GLint r, struct glCapabilitiesConfig *c) { CGLError err; @@ -328,14 +328,14 @@ static CGLError handleRendererDescriptions(CGLRendererInfoObj info, GLint r, err = CGLDescribeRenderer(info, r, kCGLRPColorModes, &flags); if(err) - return true; + return err; handleColorModes(c, flags); err = CGLDescribeRenderer(info, r, kCGLRPAccumModes, &flags); if(err) - return true; + return err; handleAccumulationModes(c, flags);