Daemon icon indicating copy to clipboard operation
Daemon copied to clipboard

Deduplicate Material renderer function selection

Open illwieckz opened this issue 5 months ago • 0 comments

That part of the Material code seems to be stable enough to start mutualizing some logic with the non-Material code.

The various ProcessMaterial*, BindShader* and UpdateSurfaceData* functions are selected at the same time the Render_* functions are, at q3shader parsing time.

This deduplicates many switch boilerplate and reduce risks to introduce discrepancies in the future when modifying some parts of the code and forgetting to report the same change everywhere else.

illwieckz avatar Aug 28 '24 12:08 illwieckz