mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Update shaderGen.cpp
move skipregen initialization
This commit is contained in:
parent
21534473c9
commit
4ceeb07ea0
1 changed files with 1 additions and 1 deletions
|
|
@ -192,7 +192,6 @@ void ShaderGen::generateShader( const MaterialFeatureData& featureData,
|
||||||
_uninit();
|
_uninit();
|
||||||
_init();
|
_init();
|
||||||
|
|
||||||
bool skipRegen = !Con::getBoolVariable("ShaderGen::GenNewShaders", true);
|
|
||||||
const FeatureSet& features = mFeatureData.features;
|
const FeatureSet& features = mFeatureData.features;
|
||||||
U32 stages = 0;
|
U32 stages = 0;
|
||||||
|
|
||||||
|
|
@ -214,6 +213,7 @@ void ShaderGen::generateShader( const MaterialFeatureData& featureData,
|
||||||
if (!(stages & stage))
|
if (!(stages & stage))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
bool skipRegen = !Con::getBoolVariable("ShaderGen::GenNewShaders", true);
|
||||||
GFXShaderStage curStage = (GFXShaderStage)stage;
|
GFXShaderStage curStage = (GFXShaderStage)stage;
|
||||||
|
|
||||||
char fileName[256];
|
char fileName[256];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue