diff --git a/src/java/org/lwjgl/opencl/CL.java b/src/java/org/lwjgl/opencl/CL.java index 81070f8d..f000032d 100644 --- a/src/java/org/lwjgl/opencl/CL.java +++ b/src/java/org/lwjgl/opencl/CL.java @@ -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); diff --git a/src/java/org/lwjgl/opengl/GLContext.java b/src/java/org/lwjgl/opengl/GLContext.java index 03b45cca..61fd49d6 100644 --- a/src/java/org/lwjgl/opengl/GLContext.java +++ b/src/java/org/lwjgl/opengl/GLContext.java @@ -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);