Skip to content

Commit 0651a36

Browse files
author
Benjamin Yap
committed
Update LWJGL3 bindings
1 parent 29d77e3 commit 0651a36

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/com/bwyap/lwjgl/engine/gui/nanovg/NVGRenderer.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import static org.lwjgl.nanovg.NanoVG.nvgTextBox;
3333
import static org.lwjgl.nanovg.NanoVGGL3.NVG_ANTIALIAS;
3434
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;
3636
import static org.lwjgl.opengl.GL11.GL_DEPTH_TEST;
3737
import static org.lwjgl.opengl.GL11.GL_ONE_MINUS_SRC_ALPHA;
3838
import static org.lwjgl.opengl.GL11.GL_SRC_ALPHA;
@@ -103,9 +103,9 @@ public class NVGRenderer extends GUIRenderer {
103103
public NVGRenderer() throws Exception {
104104
// Initialise the GUI
105105
if (LWJGLResourceManager.instance().settings().isAntiAlias())
106-
vgID = nvgCreateGL3(NVG_ANTIALIAS | NVG_STENCIL_STROKES);
106+
vgID = nvgCreate(NVG_ANTIALIAS | NVG_STENCIL_STROKES);
107107
else
108-
vgID = nvgCreateGL3(NVG_STENCIL_STROKES);
108+
vgID = nvgCreate(NVG_STENCIL_STROKES);
109109

110110
if (vgID == NULL)
111111
throw new Exception("Could not initialise NanoVG");
@@ -490,8 +490,8 @@ public void renderText(TextComponent text, GUIBoundsInterface e) {
490490
break;
491491
}
492492

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());
495495

496496
if (text.isClipText()) popScissor(getContext());
497497
}

0 commit comments

Comments
 (0)