I am writing a program and at some point I had one texture, but then I had to divide it into 2 different parts (in half) and, accordingly, draw through two batch.draw (then I did two different methods for this) and now I you need to abandon two different textures in favor of one, used the old picture, removed the second, additional method, but got only a white rectangle in the upper right part, from the camera, it feels like they are tied for some reason to each other

render() { batch.begin(); background.drawBackground(batch); //рисовка Ρ„ΠΎΠ½Π° background.drawUpMenu(batch, camera); //рисовка мСню background.drawUpActivity(batch); //активная Π·ΠΎΠ½Π° batch.end(); } void drawBackground(Batch batch) { //рисовка Ρ„ΠΎΠ½Π° batch.draw(background, 0, 0); } void drawUpMenu(Batch batch, Camera camera) { //рисовка мСню batch.draw(upMenu, camera.position.x - (WIDTH / 2), camera.position.y - (HEIGHT / 2)); } void drawUpActivity(Batch batch) {ΠΎΠ½Π° Π½ΡƒΠΆΠ½Π° batch.draw(upActivity, 10, 70); } 

if you remove drawUpActivity () in render, this white rectangle will appear, although now the upActivity texture is a pair of pink pixels: /

the code works and so, but I want to remove it, thanks

  • I really do not know what could be the problem - meow meow

0