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
This commit is contained in:
Thomas Guillemard authored and gdkchan committed 2018-12-17 22:32:12 -02:00
1 parent 6aaf9ccb53
commit 33e7c89822
4 files changed
+10 -7

No files matched your search

+3 -1
View File
@@ -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;