File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,13 @@ SVS* CResourceManager::_CreateVS (LPCSTR _name)
217
217
218
218
VERIFY (SUCCEEDED (_hr));
219
219
220
+ // Parse constant, texture, sampler binding
221
+ if (SUCCEEDED (_hr))
222
+ {
223
+ // Let constant table parse it's data
224
+ _vs->constants .parse (_result, RC_dest_vertex);
225
+ }
226
+
220
227
CHECK_OR_EXIT (
221
228
!FAILED (_hr),
222
229
make_string (" Your video card doesn't meet game requirements.\n\n Try to lower game settings." )
@@ -302,6 +309,13 @@ SPS* CResourceManager::_CreatePS (LPCSTR _name)
302
309
303
310
VERIFY (SUCCEEDED (_hr));
304
311
312
+ // Parse constant, texture, sampler binding
313
+ if (SUCCEEDED (_hr))
314
+ {
315
+ // Let constant table parse it's data
316
+ _ps->constants .parse (_result, RC_dest_pixel);
317
+ }
318
+
305
319
CHECK_OR_EXIT (
306
320
!FAILED (_hr),
307
321
make_string (" Your video card doesn't meet game requirements.\n\n Try to lower game settings." )
@@ -367,6 +381,13 @@ SGS* CResourceManager::_CreateGS (LPCSTR name)
367
381
368
382
VERIFY (SUCCEEDED (_hr));
369
383
384
+ // Parse constant, texture, sampler binding
385
+ if (SUCCEEDED (_hr))
386
+ {
387
+ // Let constant table parse it's data
388
+ _gs->constants .parse (_result, RC_dest_geometry);
389
+ }
390
+
370
391
FS.r_close ( file );
371
392
372
393
CHECK_OR_EXIT (
You can’t perform that action at this time.
0 commit comments