|
32 | 32 | import static org.lwjgl.nanovg.NanoVG.nvgTextBox;
|
33 | 33 | import static org.lwjgl.nanovg.NanoVGGL3.NVG_ANTIALIAS;
|
34 | 34 | import static org.lwjgl.nanovg.NanoVGGL3.NVG_STENCIL_STROKES;
|
35 |
| -import static org.lwjgl.nanovg.NanoVGGL3.nvgCreateGL3; |
| 35 | +import static org.lwjgl.nanovg.NanoVGGL3.nvgCreate; |
36 | 36 | import static org.lwjgl.opengl.GL11.GL_DEPTH_TEST;
|
37 | 37 | import static org.lwjgl.opengl.GL11.GL_ONE_MINUS_SRC_ALPHA;
|
38 | 38 | import static org.lwjgl.opengl.GL11.GL_SRC_ALPHA;
|
@@ -103,9 +103,9 @@ public class NVGRenderer extends GUIRenderer {
|
103 | 103 | public NVGRenderer() throws Exception {
|
104 | 104 | // Initialise the GUI
|
105 | 105 | if (LWJGLResourceManager.instance().settings().isAntiAlias())
|
106 |
| - vgID = nvgCreateGL3(NVG_ANTIALIAS | NVG_STENCIL_STROKES); |
| 106 | + vgID = nvgCreate(NVG_ANTIALIAS | NVG_STENCIL_STROKES); |
107 | 107 | else
|
108 |
| - vgID = nvgCreateGL3(NVG_STENCIL_STROKES); |
| 108 | + vgID = nvgCreate(NVG_STENCIL_STROKES); |
109 | 109 |
|
110 | 110 | if (vgID == NULL)
|
111 | 111 | throw new Exception("Could not initialise NanoVG");
|
@@ -490,8 +490,8 @@ public void renderText(TextComponent text, GUIBoundsInterface e) {
|
490 | 490 | break;
|
491 | 491 | }
|
492 | 492 |
|
493 |
| - if (text.isTextBox()) nvgTextBox(getContext(), xPos, yPos, text.getTextBoxWidth(), text.getText(), 0); |
494 |
| - else nvgText(getContext(), xPos, yPos, text.getText(), 0); |
| 493 | + if (text.isTextBox()) nvgTextBox(getContext(), xPos, yPos, text.getTextBoxWidth(), text.getText()); |
| 494 | + else nvgText(getContext(), xPos, yPos, text.getText()); |
495 | 495 |
|
496 | 496 | if (text.isClipText()) popScissor(getContext());
|
497 | 497 | }
|
|
0 commit comments