Bonus: Removed getMaterial from EnableMaterial (2)
public class CopyImageToScreenNode extends ConditionDependentNode implements FBOManagerSubscriber {
private static final ResourceUrn DEFAULT_FRAME_BUFFER_URN = new ResourceUrn("engine:display");
+ private static final ResourceUrn DEFAULT_TEXTURED_MATERIAL = new ResourceUrn("engine:prog.defaultTextured");
private DisplayResolutionDependentFBOs displayResolutionDependentFBOs;
@@ -52,7 +53,7 @@ public CopyImageToScreenNode(Context context) {
update(); // Cheeky way to initialise sceneFinalFbo
displayResolutionDependentFBOs.subscribe(this);
- addDesiredStateChange(new EnableMaterial("engine:prog.defaultTextured"));
+ addDesiredStateChange(new EnableMaterial(DEFAULT_TEXTURED_MATERIAL));
}
@Override
