mirror of
https://github.com/utmapp/angle.git
synced 2026-12-01 22:13:25 -10:00
Previously the enum conversion script would convert all enums in gl.xml including those for desktop GL. When replaying from a CPP file we would sometimes try to use enum values that only are exposed in desktop GL. One example is GL_TEXTURE_MAX_ANISOTROPY/GL_TEXTURE_MAX_ANISOTROPY_EXT. GLES only has the "EXT" version. Desktop uses the core version. This was breaking a replay sample that used the EXT enum. Fix this by a) including the anisotropy extension in registry_xml and b) updating the enum script to only parse GLES 2 entries. In the future we could improve the situation by auto-generating a header that defines exactly the enums we need for ANGLE. Also updates the enum helper to use uppercase enum values. Bug: angleproject:3611 Change-Id: I1e01608bc8af282dc078d5a19ac4eba659c96b57 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1894143 Commit-Queue: Jamie Madill <[email protected]> Reviewed-by: Tim Van Patten <[email protected]>
14 lines
441 B
JSON
14 lines
441 B
JSON
{
|
|
"scripts/gen_gl_enum_utils.py":
|
|
"f25cdc74b57d10a1cbc4194a72e971af",
|
|
"scripts/gl.xml":
|
|
"b470cb06b06cbbe7adb2c8129ec85708",
|
|
"scripts/gl_angle_ext.xml":
|
|
"d6907cd84d95ac0b32a164194eadcf53",
|
|
"scripts/registry_xml.py":
|
|
"c633c0b4490ef4ab5aaebb295510398d",
|
|
"src/libANGLE/gl_enum_utils_autogen.cpp":
|
|
"3178466fb9ef26a3349fe59a76295dc3",
|
|
"src/libANGLE/gl_enum_utils_autogen.h":
|
|
"fb0bb7f506f6082ea3b2c3fa384d2739"
|
|
} |