OSDN Git Service

Fix retrieving the current Display.
authorNicolas Capens <capn@google.com>
Mon, 10 Jul 2017 18:26:17 +0000 (14:26 -0400)
committerNicolas Capens <capn@google.com>
Tue, 11 Jul 2017 16:41:54 +0000 (16:41 +0000)
commite88da3177264ec09c9e7730dd42cfabb11457354
treeda531225983bd41f669f1cb88930914d1fdc7494
parent420b64d2fa291a02bc915f36c46776912f862a03
Fix retrieving the current Display.

eglGetCurrentDisplay() returned a pointer to the concrete egl::Display
object, instead of the opaque identifier obtained from eglGetDisplay.
This was a regression caused by
https://swiftshader-review.googlesource.com/10188

Bug chromium:738298

Change-Id: Id3a87fc3978f8f4efdc77d6c5eaa85743fa3672c
Reviewed-on: https://swiftshader-review.googlesource.com/10508
Tested-by: Nicolas Capens <capn@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
src/OpenGL/libEGL/Display.cpp
src/OpenGL/libEGL/Display.h
src/OpenGL/libEGL/libEGL.cpp
tests/unittests/unittests.cpp