We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d6f17c commit 9856f79Copy full SHA for 9856f79
Graphics/GraphicsEngineOpenGL/src/GLContextAndroid.cpp
@@ -294,7 +294,14 @@ namespace Diligent
294
if( err == EGL_BAD_SURFACE )
295
{
296
LOG_INFO_MESSAGE("EGL surface has been lost. Attempting to recreate");
297
- InitEGLSurface();
+ try
298
+ {
299
+ InitEGLSurface();
300
+ }
301
+ catch(std::runtime_error &)
302
303
+ LOG_ERROR_MESSAGE("Failed to recreate EGL surface");
304
305
//return EGL_SUCCESS; //Still consider glContext is valid
306
}
307
else if( err == EGL_CONTEXT_LOST || err == EGL_BAD_CONTEXT )
0 commit comments