Commit e83e4a1 1 parent e1989a9 commit e83e4a1 Copy full SHA for e83e4a1
File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,22 @@ bool ShaderData::initShader()
143
143
pixelShaderPath = fullFilename2;
144
144
}
145
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
+ valid = false ;
157
+ }
158
+
159
+ if (!valid)
160
+ return false ;
161
+
146
162
shader = GFX->createShader ( (char *)vtexShaderPath,
147
163
(char *)pixelShaderPath,
148
164
pixver );
You can’t perform that action at this time.
0 commit comments