diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-09-21 05:12:56 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-09-21 05:12:56 +0000 |
| commit | 88efc5db06543a1ae977a7bbc6797d8802685667 (patch) | |
| tree | 83ff2ec63282fd504fbe00240dcd1f73a94e61b0 /NativeApp/src/Linux/LinuxMain.cpp | |
| parent | Updated native app project for UWP (added dxgi.lib) (diff) | |
| download | DiligentTools-88efc5db06543a1ae977a7bbc6797d8802685667.tar.gz DiligentTools-88efc5db06543a1ae977a7bbc6797d8802685667.zip | |
Linux app base: updated OnGLContextCreated to return bool
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; |
