Skip to content

Commit

Permalink
reverted ignore sampler (should be done at higher level)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed May 16, 2013
1 parent 5bf592d commit 1dc7cb7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions hxsl/RuntimeCompiler.hx
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,9 @@ class RuntimeCompiler {

public static var DEFAULT_CONFIG = {
padWrites : true,
defaultIgnoreSampler : false,
};

public var config : { padWrites : Bool, defaultIgnoreSampler : Bool };
public var config : { padWrites : Bool };

public function new() {
varId = 0;
Expand Down Expand Up @@ -805,8 +804,6 @@ class RuntimeCompiler {
var mode = [];
for( f in flags )
mode.push( { f : CTFlag(f), p : e.p } );
if( config.defaultIgnoreSampler && flags.length == 0 )
flags.push(TIgnoreSampler);
CTex(v, acc, mode);
case CCond(c, eif, eelse):
if( isTrue(compileCond(c)) )
Expand Down

0 comments on commit 1dc7cb7

Please sign in to comment.