From 2782c5a061ebbce89c0d00e31c960d130178f179 Mon Sep 17 00:00:00 2001 From: Liran Date: Thu, 30 Jun 2011 15:06:19 +0300 Subject: [PATCH] System egl: fix eglInitialize fix eglInitialize to accept NULL in major/minor parameters --- tools/emulator/opengl/system/egl/egl.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/emulator/opengl/system/egl/egl.cpp b/tools/emulator/opengl/system/egl/egl.cpp index 5cc7528b4..f8633fdca 100644 --- a/tools/emulator/opengl/system/egl/egl.cpp +++ b/tools/emulator/opengl/system/egl/egl.cpp @@ -547,9 +547,10 @@ EGLBoolean eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor) if (!s_display.initialize(&s_eglIface)) { return EGL_FALSE; } - - *major = s_display.getVersionMajor(); - *minor = s_display.getVersionMinor(); + if (major!=NULL) + *major = s_display.getVersionMajor(); + if (minor!=NULL) + *minor = s_display.getVersionMinor(); return EGL_TRUE; }