source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

[Shaders] Using PSREG >c31 crashes the game on startup when replacing UnlitGeneric

Open WhiteRedDragons opened this issue 8 months ago • 1 comments

Should be self-explanatory. Tested on a TF2 Mod. Boolean Registers work fine, don't know about Integer but probably unaffected. I'm probably the only person that will ever use them..

I figured this out the hard way, I avoid c0-c31 because of force pushed values there. Tint happens to be c32 on my Shaders, so I would pretty much force crash it every launch 👍 👍 👍

TLDR: sm3.0 registers are enabled too late Shaders that use these registers before 'the hack' is applied crash the game. ( the hack: know 100% what is being done that causes this issue. Lazy!!! )

WhiteRedDragons avatar Jun 10 '25 00:06 WhiteRedDragons

Also crashes the game when doing quit, when UnlitGeneric is used on in VGUI somewhere This just tells me that the c32+ registers are entirely untested.

WhiteRedDragons avatar Jun 12 '25 17:06 WhiteRedDragons

Same issue as #188.

InevitablyDivinity avatar Jul 27 '25 13:07 InevitablyDivinity

Closing in favor of the older issue report.

kisak-valve avatar Jul 27 '25 20:07 kisak-valve