diff options
| author | Thomas Guillemard <thog@protonmail.com> | 2018-12-18 01:32:12 +0100 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-12-17 22:32:12 -0200 |
| commit | 33e7c898222eee55fd8df80088708c8f8906bd14 (patch) | |
| tree | 211b8212502e4cdba8a56b03aace1369d51ec67c /Ryujinx.Graphics/Gal/OpenGL | |
| parent | 6aaf9ccb533d1485361f55fa7d6d16dda719bf06 (diff) | |
Move MaxUboSize definition (#530)
* Move MaxUboSize definition
This fix a crash on Ryujinx.ShaderTools caused by the absence of an
OpenGL context.
* Use a constant for the value in ShaderTools
* Address comments
Diffstat (limited to 'Ryujinx.Graphics/Gal/OpenGL')
| -rw-r--r-- | Ryujinx.Graphics/Gal/OpenGL/OGLShader.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics/Gal/OpenGL/OGLShader.cs b/Ryujinx.Graphics/Gal/OpenGL/OGLShader.cs index b45a3a3a..10a9120d 100644 --- a/Ryujinx.Graphics/Gal/OpenGL/OGLShader.cs +++ b/Ryujinx.Graphics/Gal/OpenGL/OGLShader.cs @@ -53,7 +53,7 @@ namespace Ryujinx.Graphics.Gal.OpenGL { GlslProgram Program; - GlslDecompiler Decompiler = new GlslDecompiler(); + GlslDecompiler Decompiler = new GlslDecompiler(OGLLimit.MaxUboSize); int ShaderDumpIndex = ShaderDumper.DumpIndex; |
