Fixed Image disposal in LightProbeFactory (issue https://github.com/jMonkeyEngine/jmonkeyengine/issues/424)
This commit is contained in:
parent
0b23f195e2
commit
a670877df1
@ -153,7 +153,7 @@ public class LightProbeFactory {
|
||||
|
||||
probe.setReady(false);
|
||||
|
||||
if(probe.getIrradianceMap() == null) {
|
||||
if(probe.getIrradianceMap() != null) {
|
||||
probe.getIrradianceMap().getImage().dispose();
|
||||
probe.getPrefilteredEnvMap().getImage().dispose();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user