Skip to content

Commit 9e7160e

Browse files
soywizmatthiasblaesing
authored andcommitted
Fixes typo in OpenGL32Util
1 parent 49d80ee commit 9e7160e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Bug Fixes
1919
* [#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).
2020
* [#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).
2121
* [#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).
22+
* [#1489](https://github.com/java-native-access/jna/pull/1489): Fixes typo in `OpenGL32Util#wglGetProcAddress`, instead of parameter `procName` the hardcoded value `wglEnumGpusNV` was used - [@soywiz](https://github.com/soywiz).
2223

2324
Release 5.12.1
2425
==============

contrib/platform/src/com/sun/jna/platform/win32/OpenGL32Util.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public abstract class OpenGL32Util {
4141
* @return the function
4242
*/
4343
public static Function wglGetProcAddress(String procName) {
44-
Pointer funcPointer = OpenGL32.INSTANCE.wglGetProcAddress("wglEnumGpusNV");
44+
Pointer funcPointer = OpenGL32.INSTANCE.wglGetProcAddress(procName);
4545
return (funcPointer == null) ? null : Function.getFunction(funcPointer);
4646
}
4747

0 commit comments

Comments
 (0)