diff options
author | LittleWhite <lw.demoscene@googlemail.com> | 2016-01-07 20:33:54 +0100 |
---|---|---|
committer | LittleWhite <lw.demoscene@googlemail.com> | 2016-03-08 22:05:25 +0100 |
commit | 4be68dddfbdc7065139351e6e39b5fa97844264a (patch) | |
tree | 4b020326a58a7a4364b752cb731233cb6c264cd0 /src/video_core/renderer_opengl | |
parent | Display errors in GUI when loading ROM failed (diff) | |
download | yuzu-4be68dddfbdc7065139351e6e39b5fa97844264a.tar yuzu-4be68dddfbdc7065139351e6e39b5fa97844264a.tar.gz yuzu-4be68dddfbdc7065139351e6e39b5fa97844264a.tar.bz2 yuzu-4be68dddfbdc7065139351e6e39b5fa97844264a.tar.lz yuzu-4be68dddfbdc7065139351e6e39b5fa97844264a.tar.xz yuzu-4be68dddfbdc7065139351e6e39b5fa97844264a.tar.zst yuzu-4be68dddfbdc7065139351e6e39b5fa97844264a.zip |
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 8 | ||||
-rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.h | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index ca3a6a6b4..11c4d0daf 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp @@ -445,7 +445,7 @@ static void DebugHandler(GLenum source, GLenum type, GLuint id, GLenum severity, } /// Initialize the renderer -void RendererOpenGL::Init() { +bool RendererOpenGL::Init() { render_window->MakeCurrent(); // TODO: Make frontends initialize this, so they can use gladLoadGLLoader with their own loaders @@ -462,9 +462,15 @@ void RendererOpenGL::Init() { LOG_INFO(Render_OpenGL, "GL_VERSION: %s", glGetString(GL_VERSION)); LOG_INFO(Render_OpenGL, "GL_VENDOR: %s", glGetString(GL_VENDOR)); LOG_INFO(Render_OpenGL, "GL_RENDERER: %s", glGetString(GL_RENDERER)); + if (!GLAD_GL_VERSION_3_3) { + return false; + } + InitOpenGLObjects(); RefreshRasterizerSetting(); + + return true; } /// Shutdown the renderer diff --git a/src/video_core/renderer_opengl/renderer_opengl.h b/src/video_core/renderer_opengl/renderer_opengl.h index b42df7654..fe4d142a5 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.h +++ b/src/video_core/renderer_opengl/renderer_opengl.h @@ -31,7 +31,7 @@ public: void SetWindow(EmuWindow* window) override; /// Initialize the renderer - void Init() override; + bool Init() override; /// Shutdown the renderer void ShutDown() override; |