summaryrefslogtreecommitdiffstats
path: root/src/egl/main/egldriver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/egl/main/egldriver.c')
-rw-r--r--src/egl/main/egldriver.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c
index e2cc0692bcf..2b9034dbcfb 100644
--- a/src/egl/main/egldriver.c
+++ b/src/egl/main/egldriver.c
@@ -201,15 +201,15 @@ _eglInitDriverFallbacks(_EGLDriver *drv)
* the driver's Extensions string.
*/
static void
-UpdateExtensionsString(_EGLDriver *drv)
+_eglUpdateExtensionsString(_EGLDriver *drv)
{
- drv->Extensions[0] = 0;
+ drv->Extensions.String[0] = 0;
- if (drv->MESA_screen_surface)
- strcat(drv->Extensions, "EGL_MESA_screen_surface ");
- if (drv->MESA_copy_context)
- strcat(drv->Extensions, "EGL_MESA_copy_context ");
- assert(strlen(drv->Extensions) < MAX_EXTENSIONS_LEN);
+ if (drv->Extensions.MESA_screen_surface)
+ strcat(drv->Extensions.String, "EGL_MESA_screen_surface ");
+ if (drv->Extensions.MESA_copy_context)
+ strcat(drv->Extensions.String, "EGL_MESA_copy_context ");
+ assert(strlen(drv->Extensions.String) < MAX_EXTENSIONS_LEN);
}
@@ -225,8 +225,8 @@ _eglQueryString(_EGLDriver *drv, EGLDisplay dpy, EGLint name)
case EGL_VERSION:
return "1.0";
case EGL_EXTENSIONS:
- UpdateExtensionsString(drv);
- return drv->Extensions;
+ _eglUpdateExtensionsString(drv);
+ return drv->Extensions.String;
default:
_eglError(EGL_BAD_PARAMETER, "eglQueryString");
return NULL;