egl: Fix EGL_VERSION string.
authorChia-I Wu <olv@lunarg.com>
Fri, 14 Jan 2011 06:29:04 +0000 (14:29 +0800)
committerChia-I Wu <olv@lunarg.com>
Fri, 14 Jan 2011 06:29:19 +0000 (14:29 +0800)
Fix a copy-and-paste error in a4a38dcf61f141297a083ccac217200947d57b0d.

src/egl/main/eglmisc.c

index a595e3f4d913d19e70e203c1225b11864fe40b51..f8ba5f33eb949092e3a1f31b464fde920deceb52 100644 (file)
@@ -147,7 +147,7 @@ _eglQueryString(_EGLDriver *drv, _EGLDisplay *dpy, EGLint name)
       return _EGL_VENDOR_STRING;
    case EGL_VERSION:
       _eglsnprintf(dpy->VersionString, sizeof(dpy->VersionString),
-              "%d.%d (%s)", dpy->VersionMajor, dpy->VersionMajor,
+              "%d.%d (%s)", dpy->VersionMajor, dpy->VersionMinor,
               dpy->Driver->Name);
       return dpy->VersionString;
    case EGL_EXTENSIONS: