Skip to content

Commit 75e12fd

Browse files
committed
Attempts at fixing broken text rendering
1 parent a8edef4 commit 75e12fd

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • modules/ui/src/main/kotlin/org/polyfrost/oneconfig/api/ui/v1/internal

modules/ui/src/main/kotlin/org/polyfrost/oneconfig/api/ui/v1/internal/GLRendererImpl.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -363,10 +363,10 @@ class GLRendererImpl(private val nsvg: NanoSvgApi, private val stb: StbApi) : Re
363363
require("GL_EXT_gpu_shader4" in extensions) { "GL_EXT_gpu_shader4 is not supported and is required" }
364364
require("GL_ARB_instanced_arrays" in extensions) { "GL_ARB_instanced_arrays is not supported and is required" }
365365
require("GL_ARB_draw_instanced" in extensions) { "GL_ARB_draw_instanced is not supported and is required" }
366-
if ("GL_EXT_framebuffer_object" in extensions) {
367-
LOGGER.info("Using mipmaps as extension GL_EXT_framebuffer_object is available")
368-
mipmapMode = 2
369-
}
366+
// if ("GL_EXT_framebuffer_object" in extensions) {
367+
// LOGGER.info("Using mipmaps as extension GL_EXT_framebuffer_object is available")
368+
// mipmapMode = 2
369+
// }
370370
}
371371
}
372372

@@ -948,7 +948,7 @@ class GLRendererImpl(private val nsvg: NanoSvgApi, private val stb: StbApi) : Re
948948

949949
private fun getFontAtlas(font: Font, fontSize: Float): FontAtlas {
950950
val renderSize = when (fontSize) {
951-
in 0f..16f -> 6f
951+
in 0f..16f -> 12f
952952
in 0f..36f -> 24f
953953
else -> 48f
954954
}

0 commit comments

Comments
 (0)