mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-03 17:55:42 +00:00
Fix bug in Rewrite that didn't detect missing CountAttributes
This commit is contained in:
parent
781cdd5a3b
commit
4cdaea4747
|
@ -863,9 +863,10 @@ namespace OpenTK.Rewrite
|
||||||
var attribute = parameter.CustomAttributes
|
var attribute = parameter.CustomAttributes
|
||||||
.FirstOrDefault(a => a.AttributeType.Name == "CountAttribute");
|
.FirstOrDefault(a => a.AttributeType.Name == "CountAttribute");
|
||||||
|
|
||||||
var count = new CountAttribute();
|
CountAttribute count = null;
|
||||||
if (attribute != null)
|
if (attribute != null)
|
||||||
{
|
{
|
||||||
|
count = new CountAttribute();
|
||||||
count.Count = (int)(GetAttributeField(attribute, "Count") ?? 0);
|
count.Count = (int)(GetAttributeField(attribute, "Count") ?? 0);
|
||||||
count.Parameter = (string)(GetAttributeField(attribute, "Parameter"));
|
count.Parameter = (string)(GetAttributeField(attribute, "Parameter"));
|
||||||
count.Computed = (string)(GetAttributeField(attribute, "Computed"));
|
count.Computed = (string)(GetAttributeField(attribute, "Computed"));
|
||||||
|
|
Loading…
Reference in a new issue