diff options
Diffstat (limited to 'NativeApp/src/Linux/LinuxMain.cpp')
| -rw-r--r-- | NativeApp/src/Linux/LinuxMain.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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; |
