summaryrefslogtreecommitdiff
path: root/unittests/autotestscripts/check_dynamic_shader_compile.pl
blob: 39e8e3a729f226bcae004a7a50f91b0c9228ba29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
  }