Im trying to create a vertical scrolling game that has a level that is 380 X 10000. When I create the Texture to load the image I get this error: Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Texture width and height must be powers of two: 380x10000 I know i can get textures that are 512X512 to load fine. So what do i need to do to get this background image to load?
Assets{
public static Texture levels;
public static TextureRegion levelsRegion;
}
Load{
levels = loadTexture("data/levels.png"); <--------- Error occurs here.
levelsRegion = new TextureRegion(background, 0, 0, 380, 10000); <--- Doesnt get to this point
}