OSDN Git Service

Dont call exit() from the DRI driver, with AIGLX this is particularly nasty
[android-x86/external-mesa.git] / src / mesa / drivers / dri / nouveau / nouveau_context.c
index 00f0646..ff00782 100644 (file)
@@ -79,7 +79,8 @@ GLboolean nouveauCreateContext( const __GLcontextModes *glVisual,
                return GL_FALSE;
 
        /* Create the hardware context */
-       nouveauFifoInit(nmesa);
+       if (!nouveauFifoInit(nmesa))
+          return GL_FALSE;
        nouveauObjectInit(nmesa);
 
        /* Init default driver functions then plug in our nouveau-specific functions