Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions jme3-core/src/main/java/com/jme3/shadow/SdsmFitter.java
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,7 @@ boolean isReady(boolean wait) {
}

SplitFitResult extract() {
if (fence != null) {
renderer.deleteFence(fence);
fence = null;
}
fence = null;
SplitFit fit = extractFit();
return new SplitFitResult(parameters, fit);
}
Expand Down Expand Up @@ -304,9 +301,7 @@ private SplitFit extractFit() {
void cleanup() {
minMaxDepthSsbo.deleteObject(renderer);
fitFrustumSsbo.deleteObject(renderer);
if (fence != null) {
fence.deleteObject(renderer);
}
fence = null;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
import com.jme3.shadow.DirectionalLightShadowFilter;
import com.jme3.shadow.EdgeFilteringMode;
import com.jme3.shadow.SdsmDirectionalLightShadowFilter;
import com.jme3.system.AppSettings;
import com.jme3.util.SkyFactory;

import java.io.File;
Expand Down Expand Up @@ -86,6 +87,9 @@ public class TestSdsmDirectionalLightShadow extends SimpleApplication implements

public static void main(String[] args) {
TestSdsmDirectionalLightShadow app = new TestSdsmDirectionalLightShadow();
AppSettings settings = new AppSettings(true);
settings.setGraphicsDebug(true);
app.setSettings(settings);
app.start();
}

Expand Down