Commit a810d0c8 by Nicolas Capens

Fix returning an opaque handle for eglGetCurrentDisplay().

Change-Id: If7524c5245951ed87bcb8caacda2264db0875dad Reviewed-on: https://swiftshader-review.googlesource.com/4554Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent 028f41ba
...@@ -777,9 +777,10 @@ EGLDisplay GetCurrentDisplay(void) ...@@ -777,9 +777,10 @@ EGLDisplay GetCurrentDisplay(void)
{ {
TRACE("()"); TRACE("()");
EGLDisplay dpy = egl::getCurrentDisplay(); egl::Display *display = egl::getCurrentDisplay();
return success(dpy); // We don't return the actual object pointer. We only support the default display, represented by '1'
return success(display ? (EGLDisplay)1 : EGL_NO_DISPLAY);
} }
EGLBoolean QueryContext(EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value) EGLBoolean QueryContext(EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value)
......
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