summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglapi.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-05-29 17:02:31 -0600
committerBrian Paul <[email protected]>2008-05-29 17:04:24 -0600
commit1c73b4ba86b424ba66a16c4006a57db505bd3ca3 (patch)
treed532cdc1bea63637f19ad85ade5f641277285165 /src/egl/main/eglapi.c
parentd1a0faffc3fde42b030f3eb18d6f31c10dfdc8f6 (diff)
egl: added Name field to _EGLDriver so a driver name string can propogate up through EGL_VERSION string
Diffstat (limited to 'src/egl/main/eglapi.c')
-rw-r--r--src/egl/main/eglapi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
index 3151b35156c..367787b243d 100644
--- a/src/egl/main/eglapi.c
+++ b/src/egl/main/eglapi.c
@@ -81,7 +81,8 @@ eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor)
dpyPriv->Driver->APImajor = *major;
dpyPriv->Driver->APIminor = *minor;
- sprintf(dpyPriv->Driver->Version, "%d.%d", *major, *minor);
+ snprintf(dpyPriv->Driver->Version, sizeof(dpyPriv->Driver->Version),
+ "%d.%d (%s)", *major, *minor, dpyPriv->Driver->Name);
return retVal;
}