mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 03:05:30 -04:00
Fixed text rendering stopping to work sometimes. Maybe.
This commit is contained in:
parent
880b2fd95a
commit
dad119cace
@ -25,6 +25,7 @@ abstract class TextureFontRenderer {
|
||||
* be generated inside the draw call.
|
||||
*/
|
||||
def generateChars(chars: Array[Char]) {
|
||||
GL11.glEnable(GL11.GL_TEXTURE_2D)
|
||||
for (char <- chars) {
|
||||
generateChar(char)
|
||||
}
|
||||
@ -107,6 +108,7 @@ abstract class TextureFontRenderer {
|
||||
|
||||
RenderState.checkError(getClass.getName + ".drawBuffer: foreground")
|
||||
|
||||
RenderState.bindTexture(0)
|
||||
RenderState.enableDepthMask()
|
||||
RenderState.popAttrib()
|
||||
RenderState.popMatrix()
|
||||
|
Loading…
x
Reference in New Issue
Block a user