aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-07-06 21:09:37 +0900
committerWyvest <45589059+Wyvest@users.noreply.github.com>2022-07-06 21:09:37 +0900
commitbf0d2189dd881faa8f401d60c891bd8c1b7086b5 (patch)
tree333f33191dfbc6851ed1ba936b4b9675a68c042b /src
parent52b87cb59eebff7826d8891a6fb52911be386f46 (diff)
downloadOneConfig-bf0d2189dd881faa8f401d60c891bd8c1b7086b5.tar.gz
OneConfig-bf0d2189dd881faa8f401d60c891bd8c1b7086b5.tar.bz2
OneConfig-bf0d2189dd881faa8f401d60c891bd8c1b7086b5.zip
real
Diffstat (limited to 'src')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/renderer/RenderManager.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/renderer/RenderManager.java b/src/main/java/cc/polyfrost/oneconfig/renderer/RenderManager.java
index b747088..93c3c94 100644
--- a/src/main/java/cc/polyfrost/oneconfig/renderer/RenderManager.java
+++ b/src/main/java/cc/polyfrost/oneconfig/renderer/RenderManager.java
@@ -10,19 +10,17 @@ import cc.polyfrost.oneconfig.libs.universal.UResolution;
import cc.polyfrost.oneconfig.platform.Platform;
import cc.polyfrost.oneconfig.renderer.font.Font;
import cc.polyfrost.oneconfig.renderer.font.FontManager;
-import cc.polyfrost.oneconfig.renderer.font.Fonts;
import cc.polyfrost.oneconfig.utils.InputUtils;
import cc.polyfrost.oneconfig.utils.NetworkUtils;
import org.lwjgl.nanovg.NVGColor;
import org.lwjgl.nanovg.NVGPaint;
+import org.lwjgl.nanovg.NanoVGGL2;
import org.lwjgl.opengl.GL11;
import java.util.function.LongConsumer;
import java.util.regex.Pattern;
import static org.lwjgl.nanovg.NanoVG.*;
-import static org.lwjgl.nanovg.NanoVGGL2.NVG_ANTIALIAS;
-import static org.lwjgl.nanovg.NanoVGGL2.nvgCreate;
/**
* Handles NanoVG rendering and wraps it in a more convenient interface.
@@ -54,7 +52,7 @@ public final class RenderManager {
*/
public static void setupAndDraw(boolean mcScaling, LongConsumer consumer) {
if (vg == -1) {
- vg = nvgCreate(NVG_ANTIALIAS);
+ vg = NanoVGGL2.nvgCreate(NanoVGGL2.NVG_ANTIALIAS);
if (vg == -1) {
throw new RuntimeException("Failed to create nvg context");
}