From 632dac735afe8cfbb17202795c5be3fe40547eea Mon Sep 17 00:00:00 2001 From: Michael Pfaff Date: Sat, 3 Sep 2022 14:31:37 -0400 Subject: [PATCH] Make getFunctionAddress public --- src/java/org/lwjgl/opengl/GLContext.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/org/lwjgl/opengl/GLContext.java b/src/java/org/lwjgl/opengl/GLContext.java index d7c17922..cb6c9210 100644 --- a/src/java/org/lwjgl/opengl/GLContext.java +++ b/src/java/org/lwjgl/opengl/GLContext.java @@ -174,7 +174,7 @@ public final class GLContext { * Helper method to get a pointer to a named function in the OpenGL library * with a name dependent on the current platform */ - static long getPlatformSpecificFunctionAddress(String function_prefix, String[] os_prefixes, String[] os_function_prefixes, String function) { + public static long getPlatformSpecificFunctionAddress(String function_prefix, String[] os_prefixes, String[] os_function_prefixes, String function) { String os_name = System.getProperty("os.name"); for ( int i = 0; i < os_prefixes.length; i++ ) if ( os_name.startsWith(os_prefixes[i]) ) { @@ -192,7 +192,7 @@ public final class GLContext { * * @return the function pointer address */ - static long getFunctionAddress(String[] aliases) { + public static long getFunctionAddress(String[] aliases) { for ( String alias : aliases ) { long address = getFunctionAddress(alias); if ( address != 0 ) @@ -202,7 +202,7 @@ public final class GLContext { } /** Helper method to get a pointer to a named function in the OpenGL library. */ - static long getFunctionAddress(String name) { + public static long getFunctionAddress(String name) { ByteBuffer buffer = MemoryUtil.encodeASCII(name); return ngetFunctionAddress(MemoryUtil.getAddress(buffer)); }