mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-24 21:56:53 +00:00
Fixed the parsing of extensions.
This commit is contained in:
parent
7cc3947cfb
commit
d992f9474f
|
@ -35,7 +35,7 @@ namespace CHeaderToXML
|
||||||
class GLParser : Parser
|
class GLParser : Parser
|
||||||
{
|
{
|
||||||
static readonly Regex extensions = new Regex(
|
static readonly Regex extensions = new Regex(
|
||||||
"(ARB|EXT|ATI|NV|SUNX|SUN|SGIS|SGIX|SGI|MESA|3DFX|IBM|GREMEDY|HP|INTEL|PGI|INGR|APPLE|OML|I3D)",
|
@"3DFX|(?!(?<=[1-4])D)[A-Z]{2,}",
|
||||||
RegexOptions.RightToLeft | RegexOptions.Compiled);
|
RegexOptions.RightToLeft | RegexOptions.Compiled);
|
||||||
static readonly char[] splitters = new char[] { ' ', '\t', ',', '(', ')', ';', '\n', '\r' };
|
static readonly char[] splitters = new char[] { ' ', '\t', ',', '(', ')', ';', '\n', '\r' };
|
||||||
|
|
||||||
|
@ -81,11 +81,6 @@ namespace CHeaderToXML
|
||||||
new XAttribute("name", words[0]),
|
new XAttribute("name", words[0]),
|
||||||
new XAttribute("extension", extension));
|
new XAttribute("extension", extension));
|
||||||
|
|
||||||
if (words[0].Contains("ShaderSource"))
|
|
||||||
{
|
|
||||||
System.Diagnostics.Debugger.Break();
|
|
||||||
}
|
|
||||||
|
|
||||||
CurrentMode = ParserModes.Func;
|
CurrentMode = ParserModes.Func;
|
||||||
}
|
}
|
||||||
else if (current != null)
|
else if (current != null)
|
||||||
|
|
Loading…
Reference in a new issue