mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 05:50:31 +00:00
Moves the initialization of the shader common path const var so it is set before we do an initial setup of some shadergen fields.
This commit is contained in:
parent
13efa540b8
commit
cb4989fb0b
1 changed files with 2 additions and 2 deletions
|
|
@ -96,6 +96,8 @@ void ShaderGen::initShaderGen()
|
|||
if (!mInitDelegates[adapterType])
|
||||
return;
|
||||
|
||||
smCommonShaderPath = String(Con::getVariable("$Core::CommonShaderPath", "shaders/common"));
|
||||
|
||||
mInitDelegates[adapterType](this);
|
||||
mFeatureInitSignal.trigger( adapterType );
|
||||
mInit = true;
|
||||
|
|
@ -125,8 +127,6 @@ void ShaderGen::initShaderGen()
|
|||
|
||||
// Delete the auto-generated conditioner include file.
|
||||
Torque::FS::Remove( "shadergen:/" + ConditionerFeature::ConditionerIncludeFileName );
|
||||
|
||||
smCommonShaderPath = String(Con::getVariable("$Core::CommonShaderPath", "shaders/common"));
|
||||
}
|
||||
|
||||
void ShaderGen::generateShader( const MaterialFeatureData &featureData,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue