egl/dri2: try to bind old context if bindContext failed
[mesa.git] / src / egl / main / eglglobals.h
index 63bea4ebc38245fe3540a71cdb8b23ce6c895162..fc3b6bd62a775a3ed735cd15bae98aea3e5ec39f 100644 (file)
@@ -61,13 +61,15 @@ struct _egl_global
 
    /*
     * Under libglvnd, the client extension string has to be split into two
-    * strings, one for platform extensions, and one for everything else. So,
-    * define separate strings for them. _eglGetClientExtensionString will
-    * concatenate them together for a non-libglvnd build.
+    * strings, one for platform extensions, and one for everything else.
+    * For a non-glvnd build create a concatenated one.
     */
+#if USE_LIBGLVND
    const char *ClientOnlyExtensionString;
    const char *PlatformExtensionString;
-   char *ClientExtensionString;
+#else
+   const char *ClientExtensionString;
+#endif
 
    EGLDEBUGPROCKHR debugCallback;
    unsigned int debugTypesEnabled;
@@ -86,9 +88,6 @@ static inline unsigned int DebugBitFromType(EGLenum type)
    return (1 << (type - EGL_DEBUG_MSG_CRITICAL_KHR));
 }
 
-extern const char *
-_eglGetClientExtensionString(void);
-
 /**
  * Perform validity checks on a generic pointer.
  */