-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix JNI function name for
getDataSizeUncompressed
(#957)
A small fix for the JNI bindings: The function signature for `getDataSizeUncompressed` was given as `Java_org_khronos_KTXTexture_getDataSizeUncompressed` but must be `Java_org_khronos_ktx_KtxTexture_getDataSizeUncompressed` (matching the full package- and class name) Currently, calling this function would result in a `java.lang.UnsatisfiedLinkError: org.khronos.ktx.KtxTexture.getDataSizeUncompressed()J` I also added a test that _might_ look useless at the first glance: It just creates a texture, and calls all the `native` "getter" functions on that (without any assertion). The point of that test is that it would have _prevented_ this kind of error...
- Loading branch information
Showing
2 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters