File tree Expand file tree Collapse file tree
jme3-core/src/main/java/com/jme3/shadow
jme3-examples/src/main/java/jme3test/light Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -246,10 +246,7 @@ boolean isReady(boolean wait) {
246246 }
247247
248248 SplitFitResult extract () {
249- if (fence != null ) {
250- renderer .deleteFence (fence );
251- fence = null ;
252- }
249+ fence = null ;
253250 SplitFit fit = extractFit ();
254251 return new SplitFitResult (parameters , fit );
255252 }
@@ -304,9 +301,7 @@ private SplitFit extractFit() {
304301 void cleanup () {
305302 minMaxDepthSsbo .deleteObject (renderer );
306303 fitFrustumSsbo .deleteObject (renderer );
307- if (fence != null ) {
308- fence .deleteObject (renderer );
309- }
304+ fence = null ;
310305 }
311306 }
312307
Original file line number Diff line number Diff line change 5555import com .jme3 .shadow .DirectionalLightShadowFilter ;
5656import com .jme3 .shadow .EdgeFilteringMode ;
5757import com .jme3 .shadow .SdsmDirectionalLightShadowFilter ;
58+ import com .jme3 .system .AppSettings ;
5859import com .jme3 .util .SkyFactory ;
5960
6061import java .io .File ;
@@ -86,6 +87,9 @@ public class TestSdsmDirectionalLightShadow extends SimpleApplication implements
8687
8788 public static void main (String [] args ) {
8889 TestSdsmDirectionalLightShadow app = new TestSdsmDirectionalLightShadow ();
90+ AppSettings settings = new AppSettings (true );
91+ settings .setGraphicsDebug (true );
92+ app .setSettings (settings );
8993 app .start ();
9094 }
9195
You can’t perform that action at this time.
0 commit comments