summaryrefslogtreecommitdiff
path: root/unittests/autotestscripts/check_dynamic_shader_compile.pl
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/autotestscripts/check_dynamic_shader_compile.pl')
-rw-r--r--unittests/autotestscripts/check_dynamic_shader_compile.pl15
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;
+ }
+