Skip to content

Commit 33a7ec8

Browse files
committed
Fixes typo in OpenGL32Util
1 parent 49d80ee commit 33a7ec8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.md

+1
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` - [@soywiz](https://github.com/soywiz).
2223

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

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

+1-1
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)