Fix typo in last commit

This commit is contained in:
Michael Pfaff 2022-10-05 18:11:53 -04:00
parent 02f595e0b9
commit f2ec595d8a
Signed by: michael
GPG Key ID: CF402C4A012AA9D4
2 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ public final class CL {
static long getFunctionAddress(String name) {
ByteBuffer buffer = MemoryUtil.encodeASCII(name);
long address = ngetFunctionAddress(MemoryUtil.getAddress(buffer));
if (address == null) LWJGLUtil.logger().log(() -> "Could not locate symbol " + name);
if (address == 0L) LWJGLUtil.logger().log(() -> "Could not locate symbol " + name);
return address;
}
private static native long ngetFunctionAddress(long name);

View File

@ -205,7 +205,7 @@ public final class GLContext {
public static long getFunctionAddress(String name) {
ByteBuffer buffer = MemoryUtil.encodeASCII(name);
long address = ngetFunctionAddress(MemoryUtil.getAddress(buffer));
if (address == null) LWJGLUtil.logger().log(() -> "Could not locate symbol " + name);
if (address == 0L) LWJGLUtil.logger().log(() -> "Could not locate symbol " + name);
return address;
}
private static native long ngetFunctionAddress(long name);