mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 11:35:05 +08:00
On GPUs where GL_ARB_shading_language_100 isn't available (i.e. all mobile GPUs I believe) this function would return total amount of texture units available. But ref_gl only tracks and uses MAX_TEXTURE_UNITS texture units, causing memory corruption in functions that doesn't check the limit.