From 33a7ec84db7274d9fc50b4c709b587b13f55102e Mon Sep 17 00:00:00 2001 From: Carlos Ballesteros Velasco Date: Fri, 9 Dec 2022 13:42:59 +0100 Subject: [PATCH] Fixes typo in OpenGL32Util --- CHANGES.md | 1 + .../platform/src/com/sun/jna/platform/win32/OpenGL32Util.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 0ba882e459..ec6a5b0f79 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -19,6 +19,7 @@ Bug Fixes * [#1460](https://github.com/java-native-access/jna/issues/1460): Fix win32 variant date conversion in DST offest window and with millisecond values - [@eranl](https://github.com/eranl). * [#1472](https://github.com/java-native-access/jna/issues/1472): Fix incorrect bitmask in `c.s.j.Pointer#createConstant(int)` - [@dbwiddis](https://github.com/dbwiddis). * [#1481](https://github.com/java-native-access/jna/issues/1481): Fix NPE in NativeLibrary when unpacking from classpath is disabled - [@trespasserw](https://github.com/trespasserw). +* [#1489](https://github.com/java-native-access/jna/pull/1489): Fixes typo in `OpenGL32Util` - [@soywiz](https://github.com/soywiz). Release 5.12.1 ============== diff --git a/contrib/platform/src/com/sun/jna/platform/win32/OpenGL32Util.java b/contrib/platform/src/com/sun/jna/platform/win32/OpenGL32Util.java index 9d99fe92c9..a2e3b886af 100644 --- a/contrib/platform/src/com/sun/jna/platform/win32/OpenGL32Util.java +++ b/contrib/platform/src/com/sun/jna/platform/win32/OpenGL32Util.java @@ -41,7 +41,7 @@ public abstract class OpenGL32Util { * @return the function */ public static Function wglGetProcAddress(String procName) { - Pointer funcPointer = OpenGL32.INSTANCE.wglGetProcAddress("wglEnumGpusNV"); + Pointer funcPointer = OpenGL32.INSTANCE.wglGetProcAddress(procName); return (funcPointer == null) ? null : Function.getFunction(funcPointer); }