mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-11 16:28:12 -04:00
Hi.
This commit is contained in:
parent
08f20645d4
commit
f26ae2d1c6
@ -83,7 +83,7 @@ abstract class TextureFontRenderer {
|
|||||||
GL11.glBegin(GL11.GL_QUADS)
|
GL11.glBegin(GL11.GL_QUADS)
|
||||||
var cfg = -1
|
var cfg = -1
|
||||||
var tx = 0f
|
var tx = 0f
|
||||||
for (n <- 0 until line.length) {
|
for (n <- line.indices) {
|
||||||
val ch = line(n)
|
val ch = line(n)
|
||||||
val col = PackedColor.unpackForeground(color(n), format)
|
val col = PackedColor.unpackForeground(color(n), format)
|
||||||
// Check if color changed.
|
// Check if color changed.
|
||||||
|
@ -16,7 +16,7 @@ object BufferRenderer {
|
|||||||
|
|
||||||
private var displayLists = 0
|
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)")
|
RenderState.checkError(getClass.getName + ".displayLists: entering (aka: wasntme)")
|
||||||
|
|
||||||
textureManager = Some(tm)
|
textureManager = Some(tm)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user