Home Features Docs Blog Support GitHub

Libgdx rendering black texture


(Abdullah Tellioglu) #1

Hello,

I am trying to run my application in Iphone 7 device(not simulator). Everything works fine but some textures shown as black rectangle. I am not sure If it is caching images or not. In desktop or IOS simulator or Android everything works well, but in real device black textures appears.

Could you help me how to solve this problem ?

public static final Texture blueEmptyCircle = new Texture("blue_circle_empty.png");
public static final Texture star = new Texture(Gdx.files.internal("star.png"),true);

These are the samples how I load my images.


(Abdullah Tellioglu) #2

This is the Libgdx basicly OpenGL problem.
I solved my problem with scaling images to 256x256.
Large textures can not be rendered with some targets, If you get this problem.