diff options
author | bunnei <bunneidev@gmail.com> | 2016-03-09 05:12:04 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-03-09 05:12:04 +0100 |
commit | 8530a2d7df7f9546e3d4e9be2cec633307a28c23 (patch) | |
tree | 9bcf963cc1a7c8c5700afe926fd43c08b2aaff96 /src/video_core/video_core.cpp | |
parent | Merge pull request #1441 from MerryMage/dsp-pipes (diff) | |
parent | Improve error report from Init() functions (diff) | |
download | yuzu-8530a2d7df7f9546e3d4e9be2cec633307a28c23.tar yuzu-8530a2d7df7f9546e3d4e9be2cec633307a28c23.tar.gz yuzu-8530a2d7df7f9546e3d4e9be2cec633307a28c23.tar.bz2 yuzu-8530a2d7df7f9546e3d4e9be2cec633307a28c23.tar.lz yuzu-8530a2d7df7f9546e3d4e9be2cec633307a28c23.tar.xz yuzu-8530a2d7df7f9546e3d4e9be2cec633307a28c23.tar.zst yuzu-8530a2d7df7f9546e3d4e9be2cec633307a28c23.zip |
Diffstat (limited to 'src/video_core/video_core.cpp')
-rw-r--r-- | src/video_core/video_core.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/video_core/video_core.cpp b/src/video_core/video_core.cpp index 912db91a4..ee5e50df1 100644 --- a/src/video_core/video_core.cpp +++ b/src/video_core/video_core.cpp @@ -28,15 +28,19 @@ std::atomic<bool> g_hw_renderer_enabled; std::atomic<bool> g_shader_jit_enabled; /// Initialize the video core -void Init(EmuWindow* emu_window) { +bool Init(EmuWindow* emu_window) { Pica::Init(); g_emu_window = emu_window; g_renderer = Common::make_unique<RendererOpenGL>(); g_renderer->SetWindow(g_emu_window); - g_renderer->Init(); - - LOG_DEBUG(Render, "initialized OK"); + if (g_renderer->Init()) { + LOG_DEBUG(Render, "initialized OK"); + } else { + LOG_ERROR(Render, "initialization failed !"); + return false; + } + return true; } /// Shutdown the video core |