We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1989a9 commit e83e4a1Copy full SHA for e83e4a1
engine/source/materials/shaderData.cpp
@@ -143,6 +143,22 @@ bool ShaderData::initShader()
143
pixelShaderPath = fullFilename2;
144
}
145
146
+ bool valid = true;
147
+ if (vtexShaderPath != NULL && !ResourceManager->find(vtexShaderPath))
148
+ {
149
+ Con::errorf("ShaderData::initShader - Could not find vertex shader file: %s", vtexShaderPath);
150
+ valid = false;
151
+ }
152
+
153
+ if (pixelShaderPath != NULL && !ResourceManager->find(pixelShaderPath))
154
155
+ Con::errorf("ShaderData::initShader - Could not find pixel shader file: %s", pixelShaderPath);
156
157
158
159
+ if (!valid)
160
+ return false;
161
162
shader = GFX->createShader( (char*)vtexShaderPath,
163
(char*)pixelShaderPath,
164
pixver );
0 commit comments