DescriptionIt's possible to write a shader that has no instructions in the main program, but merely shuffles input params into output params (this is in fact done for certain "glue nodes" in shader networks).
Due to a bug (mine), we never set the master's "maincodebegin" and "maincodeend" members, unless there actually was main code (which is the case for 99% of shaders, but...). Hilarity ensues. And multi-day bug hunts.
Simple fix attached to initialize these, as well as a couple DASSERTS that I may as well leave in.
Patch Set 1 #
MessagesTotal messages: 2
|