@Override public int ensureTexture() { if (tex > 0) { return tex; } else if (!isReady()) { return 0; } else if (repeatX || repeatY || mipmapped) { return (tex = scaleTexture()); } else { return (tex = createMainTex()); } }
@Override public int ensureTexture() { if (tex > 0) { return tex; } else if (!isReady()) { return 0; } else if (repeatX || repeatY || mipmapped) { return (tex = scaleTexture()); } else { return (tex = createMainTex()); } }