Pixmap pixmap = new Pixmap(rawImageBytes, 0, rawImageBytes.length);
texture = new Texture(pixmap);
Texture.setEnforcePotImages(true);
}
});
<BUG>} else {
final String newText = httpResponse.getResultAsString();</BUG>
Gdx.app.postRunnable(new Runnable() {
public void run () {
text = newText;

Pixmap pixmap = new Pixmap(rawImageBytes, 0, rawImageBytes.length);
texture = new Texture(pixmap);
Texture.setEnforcePotImages(true);
}
});
} else {
setText(httpResponse);
}
}
void setText (HttpResponse httpResponse) {
final String newText = httpResponse.getResultAsString();
Gdx.app.postRunnable(new Runnable() {
public void run () {
text = newText;
