src/third_party/angle/src/tests/egl_tests/EGLSurfaceTest.cpp
// Test a bug where calling makeCurrent twice would release the surface
Test a bug where calling makeCurrent twice would release the surface
Test a bug where calling makeCurrent twice would release the surface
TEST_P(EGLSurfaceTest, MakeCurrentTwice)
{
    initializeDisplay();
    initializeSurfaceWithDefaultConfig(false);
    eglMakeCurrent(mDisplay, mWindowSurface, mWindowSurface, mContext);
    ASSERT_EGL_SUCCESS();
    eglMakeCurrent(mDisplay, mWindowSurface, mWindowSurface, mContext);
    ASSERT_EGL_SUCCESS();
    glClear(GL_COLOR_BUFFER_BIT);
}
TEST_P ( EGLSurfaceTest , MakeCurrentTwice ) { initializeDisplay ( ) ; initializeSurfaceWithDefaultConfig ( false ) ; eglMakeCurrent ( mDisplay , mWindowSurface , mWindowSurface , mContext ) ; ASSERT_EGL_SUCCESS ( ) ; eglMakeCurrent ( mDisplay , mWindowSurface , mWindowSurface , mContext ) ; ASSERT_EGL_SUCCESS ( ) ; glClear ( GL_COLOR_BUFFER_BIT ) ; }
Test a bug where calling makeCurrent twice would release the surface
Test a bug where calling makeCurrent twice would release the surface
// Simple operation to test the FBO is set appropriately