eglInitialize must not update major and minor if they are NULL.

TRAC #12235 Signed-off-by: Daniel Koch Author: Andrew Lewycky git-svn-id: https://angleproject.googlecode.com/svn/trunk@269 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 0df16871
...@@ -137,8 +137,8 @@ EGLBoolean __stdcall eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor) ...@@ -137,8 +137,8 @@ EGLBoolean __stdcall eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor)
return error(EGL_NOT_INITIALIZED, EGL_FALSE); return error(EGL_NOT_INITIALIZED, EGL_FALSE);
} }
*major = 1; if (major) *major = 1;
*minor = 4; if (minor) *minor = 4;
return success(EGL_TRUE); return success(EGL_TRUE);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment