st/egl: Fix up for ClientVersion -> ClientMajorVersion rename.
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 15 Aug 2012 08:49:22 +0000 (10:49 +0200)
committerMichel Dänzer <michel@daenzer.net>
Wed, 15 Aug 2012 08:49:39 +0000 (10:49 +0200)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=53513

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/state_trackers/egl/common/egl_g3d_api.c

index aaf7b10b1c7836a4be3d61de2942b83346e76dcb..641e0b605a2f30e3a6d9d8bc41565c8be62638c6 100644 (file)
@@ -53,7 +53,7 @@ egl_g3d_choose_st(_EGLDriver *drv, _EGLContext *ctx,
 
    switch (ctx->ClientAPI) {
    case EGL_OPENGL_ES_API:
-      switch (ctx->ClientVersion) {
+      switch (ctx->ClientMajorVersion) {
       case 1:
          api = ST_API_OPENGL;
          *profile = ST_PROFILE_OPENGL_ES1;
@@ -63,8 +63,8 @@ egl_g3d_choose_st(_EGLDriver *drv, _EGLContext *ctx,
          *profile = ST_PROFILE_OPENGL_ES2;
          break;
       default:
-         _eglLog(_EGL_WARNING, "unknown client version %d",
-               ctx->ClientVersion);
+         _eglLog(_EGL_WARNING, "unknown client major version %d",
+               ctx->ClientMajorVersion);
          break;
       }
       break;