* Fixed issue where setting an unset define then setting an already set define would cause the unset define to not be updated in the shader

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9623 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
Sha..rd 2012-08-05 22:00:48 +00:00
parent 0a38ca0cf4
commit 38ff6f7560

View File

@ -122,10 +122,10 @@ public class Technique /* implements Savable */ {
if (value == null) { if (value == null) {
// Clear the define. // Clear the define.
needReload = defines.remove(defineName); needReload = defines.remove(defineName) || needReload;
} else { } else {
// Set the define. // Set the define.
needReload = defines.set(defineName, type, value); needReload = defines.set(defineName, type, value) || needReload;
} }
} }
} }