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)
217217
218218 VERIFY (SUCCEEDED (_hr));
219219
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+
220227 CHECK_OR_EXIT (
221228 !FAILED (_hr),
222229 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)
302309
303310 VERIFY (SUCCEEDED (_hr));
304311
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+
305319 CHECK_OR_EXIT (
306320 !FAILED (_hr),
307321 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)
367381
368382 VERIFY (SUCCEEDED (_hr));
369383
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+
370391 FS.r_close ( file );
371392
372393 CHECK_OR_EXIT (
You can’t perform that action at this time.
0 commit comments