diff options
author | mageven <62494521+mageven@users.noreply.github.com> | 2020-08-02 20:11:24 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-02 16:41:24 +0200 |
commit | f0c91d9efb7eff0b8bbe8fc8d4901af5a9d59005 (patch) | |
tree | dadfcd28cc2a0e26cd4a776bf93074db17488de4 /Ryujinx.Graphics.OpenGL/Renderer.cs | |
parent | 1457ab54560a9e76a8ade68879d710f7cc533294 (diff) |
Facilitate OpenGL debug logging via GUI (#1373)
* Allow printing GL Debug logs with GUI options
Improve GL Debugger
Make the new option persistent
Address gdkchan's comments
- Rename enum to GraphicsDebugLevel
- Move Debugger Init to Renderer Init
- Fix formatting
* nit: newlines
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/Renderer.cs')
-rw-r--r-- | Ryujinx.Graphics.OpenGL/Renderer.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.OpenGL/Renderer.cs b/Ryujinx.Graphics.OpenGL/Renderer.cs index 49324637..e7a8a96b 100644 --- a/Ryujinx.Graphics.OpenGL/Renderer.cs +++ b/Ryujinx.Graphics.OpenGL/Renderer.cs @@ -1,4 +1,5 @@ using OpenTK.Graphics.OpenGL; +using Ryujinx.Common.Configuration; using Ryujinx.Common.Logging; using Ryujinx.Graphics.GAL; using Ryujinx.Graphics.OpenGL.Image; @@ -96,8 +97,10 @@ namespace Ryujinx.Graphics.OpenGL return _counters.QueueReport(type, resultHandler); } - public void Initialize() + public void Initialize(GraphicsDebugLevel glLogLevel) { + Debugger.Initialize(glLogLevel); + PrintGpuInformation(); _counters.Initialize(); |