Closed 0xNULLderef closed 4 months ago
This also fixes faces of the same material not rendering along with the "Too many faces with the same material in scene!" error spam
sick and can't really look into this myself atm, will do so another time
Tested on gm_cosmodrome
, seems to crash the game with this PR
Worked previously but had geometry issues unless I used mat_forcedynamic 1
A number of people have told me these patches cause more issues for them than they solve, so I've reverted this for now.
This pull should alleviate some of the "too many indicies for index buffer . . tell a programmer" error messages. INDEX_BUFFER_SIZE is a macro in source engine so the resulting patches need to be done to both matsys and shaderapi. I haven't really tested them against other source games much, but they still work for current GMOD.
Another possible "fix" for index buffer overflows in GMOD was to set
mat_forcedynamic 1
, but that significantly decreases performance.This patch still doesn't have technical info for it, hopefully I'll get to it soon, but for now this fixes some of the issues with maps with a ton of geometry crashing the game.