Skip to content

Commit

Permalink
Fixed #10187
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Oct 4, 2024
1 parent 5ba2e9c commit aab27d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 1 addition & 2 deletions core/src/mindustry/graphics/MultiPacker.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ public enum PageType{
//main page can be massive, but 8192 throws GL_OUT_OF_MEMORY on some GPUs and I can't deal with it yet.
main(4096),

//TODO stuff like this throws OOM on some devices
environment(4096, 2048),
environment(4096),
ui(4096),
rubble(4096, 2048),
editor(4096, 2048);
Expand Down
8 changes: 7 additions & 1 deletion core/src/mindustry/world/blocks/environment/StaticWall.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ public void drawBase(Tile tile){
@Override
public void load(){
super.load();
split = large.split(32, 32);
int size = large.width / 2;
split = large.split(size, size);
for(var arr : split){
for(var reg : arr){
reg.scale = region.scale;
}
}
}

@Override
Expand Down

0 comments on commit aab27d1

Please sign in to comment.