From 150753197574c46ce9efe6aaa2230dbc6212a452 Mon Sep 17 00:00:00 2001 From: Duy Tran Khanh Date: Sat, 2 Jan 2021 12:13:30 +0700 Subject: [PATCH] Invoke initialize_gl4es() --- JavaApp/src/main/java/org/lwjgl/opengl/GL.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/JavaApp/src/main/java/org/lwjgl/opengl/GL.java b/JavaApp/src/main/java/org/lwjgl/opengl/GL.java index 6a0d91f7..2b6cf215 100644 --- a/JavaApp/src/main/java/org/lwjgl/opengl/GL.java +++ b/JavaApp/src/main/java/org/lwjgl/opengl/GL.java @@ -346,6 +346,13 @@ public final class GL { if (functionProvider == null) { throw new IllegalStateException("OpenGL library has not been loaded."); } + + long GL4ESInit = functionProvider.getFunctionAddress("initialize_gl4es"); + if (GL4ESInit == NULL) { + throw new IllegalStateException("initialize_gl4es() could not be found. Make sure that the OpenGL library is GL4ES."); + } + } + callV(GL4ESInit); GLCapabilities caps = null;