diff options
author | bunnei <bunneidev@gmail.com> | 2017-07-13 04:19:34 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2017-07-18 03:32:28 +0200 |
commit | df8b9863f93da24e25d25f32e548605743ed8f66 (patch) | |
tree | b537192701ae290292d231cecb773af7897a4d8b /src/video_core/renderer_opengl/renderer_opengl.cpp | |
parent | Merge pull request #2804 from Kloen/theming (diff) | |
download | yuzu-df8b9863f93da24e25d25f32e548605743ed8f66.tar yuzu-df8b9863f93da24e25d25f32e548605743ed8f66.tar.gz yuzu-df8b9863f93da24e25d25f32e548605743ed8f66.tar.bz2 yuzu-df8b9863f93da24e25d25f32e548605743ed8f66.tar.lz yuzu-df8b9863f93da24e25d25f32e548605743ed8f66.tar.xz yuzu-df8b9863f93da24e25d25f32e548605743ed8f66.tar.zst yuzu-df8b9863f93da24e25d25f32e548605743ed8f66.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index d90c776f9..65c18aecc 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp @@ -481,9 +481,18 @@ bool RendererOpenGL::Init() { glDebugMessageCallback(DebugHandler, nullptr); } - 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)); + const char* gl_version{reinterpret_cast<char const*>(glGetString(GL_VERSION))}; + const char* gpu_vendor{reinterpret_cast<char const*>(glGetString(GL_VENDOR))}; + const char* gpu_model{reinterpret_cast<char const*>(glGetString(GL_RENDERER))}; + + LOG_INFO(Render_OpenGL, "GL_VERSION: %s", gl_version); + LOG_INFO(Render_OpenGL, "GL_VENDOR: %s", gpu_vendor); + LOG_INFO(Render_OpenGL, "GL_RENDERER: %s", gpu_model); + + Core::Telemetry().AddField(Telemetry::FieldType::UserSystem, "GPU_Vendor", gpu_vendor); + Core::Telemetry().AddField(Telemetry::FieldType::UserSystem, "GPU_Model", gpu_model); + Core::Telemetry().AddField(Telemetry::FieldType::UserSystem, "GPU_OpenGL_Version", gl_version); + if (!GLAD_GL_VERSION_3_3) { return false; } |