opengl font array: don't copy gb values

It uses `GL_RED` internally, so the other components are never touched. Small loading improvement
This commit is contained in:
Moritz Zwerger 2024-01-19 07:50:54 +01:00
parent 75ed3fdb2d
commit c2f3a7c00b
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -120,8 +120,8 @@ class OpenGLFontTextureArray(
val offset = index * 4 val offset = index * 4
val alpha = this[offset + 3] val alpha = this[offset + 3]
this.put(offset + 0, alpha) this.put(offset + 0, alpha)
this.put(offset + 1, alpha) // this.put(offset + 1, alpha)
this.put(offset + 2, alpha) // this.put(offset + 2, alpha)
} }
} }
} }