Minor fixes to screen reading shaders

This commit is contained in:
fgnm
2022-03-15 20:37:14 +01:00
parent aca6057e95
commit 1f3bc61e29
3 changed files with 4 additions and 2 deletions
@@ -4,6 +4,7 @@ import com.artemis.Component;
import games.rednblack.editor.HyperLap2DFacade;
import games.rednblack.editor.utils.runtime.ComponentCloner;
import games.rednblack.editor.utils.runtime.SandboxComponentRetriever;
import games.rednblack.editor.view.stage.Sandbox;
import games.rednblack.h2d.common.MsgAPI;
/**
@@ -33,6 +34,8 @@ public class RemoveComponentFromItemCommand extends EntityModifyRevertibleComman
HyperLap2DFacade.getInstance().sendNotification(DONE, entity);
HyperLap2DFacade.getInstance().sendNotification(MsgAPI.ITEM_DATA_UPDATED, entity);
Sandbox.getInstance().getSceneControl().sceneLoader.getRenderer().removeSpecialEntity(entity);
}
@Override
@@ -144,7 +144,6 @@ public class Sandbox {
externalItemTypes.addExternalItemType(new TalosItemType());
externalItemTypes.addExternalItemType(new TypingLabelItemType());
TextureArrayPolygonSpriteBatch.FORCE_UNROLLED = true;
SceneConfiguration config = new SceneConfiguration(new TextureArrayCpuPolygonSpriteBatch(10_000));
config.setResourceRetriever(resourceManager);
config.setExternalItemTypes(externalItemTypes);