This commit is contained in:
Florian Nücke 2015-07-17 19:12:17 +02:00
parent 08f20645d4
commit f26ae2d1c6
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ abstract class TextureFontRenderer {
GL11.glBegin(GL11.GL_QUADS)
var cfg = -1
var tx = 0f
for (n <- 0 until line.length) {
for (n <- line.indices) {
val ch = line(n)
val col = PackedColor.unpackForeground(color(n), format)
// Check if color changed.

View File

@ -16,7 +16,7 @@ object BufferRenderer {
private var displayLists = 0
def init(tm: TextureManager) = this.synchronized(if (!textureManager.isDefined) {
def init(tm: TextureManager) = this.synchronized(if (textureManager.isEmpty) {
RenderState.checkError(getClass.getName + ".displayLists: entering (aka: wasntme)")
textureManager = Some(tm)