mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-09-30 02:48:14 +03:00
This fixes an issue where billboard objects are not drawn in some environments. ReignEngine disables some vertex attributes when drawing billboards, but AMD's driver doesn't draw anything if any of those attributes are assigned to attribute index 0. To avoid this, this explicitly binds "vertex_pos" attribute (which is always enabled) to index 0. References: https://community.khronos.org/t/gldisablevertexattribarray-not-working/67077/4 https://stackoverflow.com/questions/28818997/how-to-use-glvertexattrib