Skip to content

Commit

Permalink
Proper clean up for EGLLockSurface3Test
Browse files Browse the repository at this point in the history
Perform unmakecurrent during test teardown

Bug: angleproject:42264593
Change-Id: I1148b5c6631e81090f7ae931495bba1b43c24502
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/6133539
Reviewed-by: Yuxin Hu <[email protected]>
Reviewed-by: Shahbaz Youssefi <[email protected]>
Commit-Queue: mohan maiya <[email protected]>
  • Loading branch information
Mohan Maiya authored and Angle LUCI CQ committed Jan 1, 2025
1 parent 3a2dbe0 commit 9d9e3ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tests/egl_tests/EGLLockSurface3Test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ class EGLLockSurface3Test : public ANGLETest<>
{
if (mDisplay != EGL_NO_DISPLAY)
{
EXPECT_EGL_TRUE(
eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT));
eglTerminate(mDisplay);
eglReleaseThread();
mDisplay = EGL_NO_DISPLAY;
Expand Down

0 comments on commit 9d9e3ef

Please sign in to comment.