Fix typo in last commit
This commit is contained in:
parent
02f595e0b9
commit
f2ec595d8a
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue