diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /unittests/autotestscripts/check_dynamic_shader_compile.pl | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'unittests/autotestscripts/check_dynamic_shader_compile.pl')
| -rw-r--r-- | unittests/autotestscripts/check_dynamic_shader_compile.pl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/unittests/autotestscripts/check_dynamic_shader_compile.pl b/unittests/autotestscripts/check_dynamic_shader_compile.pl new file mode 100644 index 0000000..39e8e3a --- /dev/null +++ b/unittests/autotestscripts/check_dynamic_shader_compile.pl @@ -0,0 +1,15 @@ +#!perl + +open(DLL,"../../../game/bin/shaderapidx9.dll" ) || die "can't open shaderapi"; + +binmode DLL; +my $dllcode = do { local( $/ ) ; <DLL> } ; # slurp comparison output in +close DLL; + +if ( $dllcode =~ /dynamic_shader_compile_is_on/s ) + { + open(ERRORS,">errors.txt") || die "huh - can't write"; + print ERRORS "stdshader_dx9.dll was built with dynamic shader compile!\n"; + close ERRORS; + } + |