OSDN Git Service

Fix allowing to make null EGL surfaces current.
authorNicolas Capens <capn@google.com>
Fri, 30 Jun 2017 21:07:33 +0000 (17:07 -0400)
committerNicolas Capens <capn@google.com>
Tue, 4 Jul 2017 18:07:19 +0000 (18:07 +0000)
commit9494572a1798d5148d18d3db57c06ce07d608d23
tree911ad98cb6c52d4d1bab609db31430c515db3871
parent9eaa19c2bcd788a4fc4fa6218dfa7f5544003a13
Fix allowing to make null EGL surfaces current.

eglMakeCurrent(display, EGL_NO_SURFACE, EGL_NO_SURFACE, context)
resulted in a null dereference. It should be supported and is a common
idiom for detaching the surfaces from the context before destroying
them.

Bug swiftshader:70

Change-Id: I5b4406c8d594bc5db34c51bd08371ce69bbd471b
Reviewed-on: https://swiftshader-review.googlesource.com/10389
Tested-by: Nicolas Capens <capn@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
src/OpenGL/libGLESv2/Context.cpp