Skip to content

Commit

Permalink
Fixes typo in OpenGL32Util
Browse files Browse the repository at this point in the history
  • Loading branch information
soywiz authored and matthiasblaesing committed Dec 10, 2022
1 parent 49d80ee commit 9e7160e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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#wglGetProcAddress`, instead of parameter `procName` the hardcoded value `wglEnumGpusNV` was used - [@soywiz](https://github.com/soywiz).

Release 5.12.1
==============
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 9e7160e

Please sign in to comment.