From 88efc5db06543a1ae977a7bbc6797d8802685667 Mon Sep 17 00:00:00 2001 From: assiduous Date: Sun, 20 Sep 2020 22:12:56 -0700 Subject: Linux app base: updated OnGLContextCreated to return bool --- NativeApp/src/Linux/LinuxMain.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'NativeApp/src/Linux/LinuxMain.cpp') diff --git a/NativeApp/src/Linux/LinuxMain.cpp b/NativeApp/src/Linux/LinuxMain.cpp index 1ae58de..0df15df 100644 --- a/NativeApp/src/Linux/LinuxMain.cpp +++ b/NativeApp/src/Linux/LinuxMain.cpp @@ -427,7 +427,11 @@ int x_main() glXMakeCurrent(display, win, ctx); - TheApp->OnGLContextCreated(display, win); + if (!TheApp->OnGLContextCreated(display, win)) + { + LOG_ERROR("Unable to initialize the application in OpenGL mode. Aborting"); + return -1; + } std::string Title = TheApp->GetAppTitle(); Timer timer; -- cgit v1.2.3