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.ShaderTools/Program.cs | |
| 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.ShaderTools/Program.cs')
| -rw-r--r-- | Ryujinx.ShaderTools/Program.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Ryujinx.ShaderTools/Program.cs b/Ryujinx.ShaderTools/Program.cs index 3597f256..30fa71ae 100644 --- a/Ryujinx.ShaderTools/Program.cs +++ b/Ryujinx.ShaderTools/Program.cs @@ -7,11 +7,13 @@ namespace Ryujinx.ShaderTools { class Program { + private static readonly int MaxUboSize = 65536; + static void Main(string[] args) { if (args.Length == 2) { - GlslDecompiler Decompiler = new GlslDecompiler(); + GlslDecompiler Decompiler = new GlslDecompiler(MaxUboSize); GalShaderType ShaderType = GalShaderType.Vertex; |
