dri glx: Propagate driver MakeCurrent errors.
authorThomas Hellstrom <thellstrom-at-vmware-dot-com>
Thu, 2 Apr 2009 08:30:30 +0000 (10:30 +0200)
committerThomas Hellstrom <thellstrom-at-vmware-dot-com>
Thu, 2 Apr 2009 09:33:19 +0000 (11:33 +0200)
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
src/mesa/drivers/dri/common/dri_util.c

index ae790554055e1902546c7f25b4cd7c266a624383..a9e37ca51eb77204a687269cbf7c77bbe3c74aee 100644 (file)
@@ -200,9 +200,8 @@ static int driBindContext(__DRIcontext *pcp,
     }
 
     /* Call device-specific MakeCurrent */
-    (*psp->DriverAPI.MakeCurrent)(pcp, pdp, prp);
 
-    return GL_TRUE;
+    return (*psp->DriverAPI.MakeCurrent)(pcp, pdp, prp);
 }
 
 /*@}*/