Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix JNI package names in KtxTexture2.cpp #621

Merged
merged 1 commit into from
Aug 15, 2022

Conversation

Illithidek
Copy link
Contributor

The name of the functions in the JNI KtxTexture2.cpp didn't match
the java package which cause linker error.

The name of the functions in the JNI KtxTexture2.cpp didn't match
the java package which cause linker error.
@CLAassistant
Copy link

CLAassistant commented Aug 14, 2022

CLA assistant check
All committers have signed the CLA.

@MarkCallow
Copy link
Collaborator

How come our tests were able to link and run?

@Illithidek
Copy link
Contributor Author

Hey, tests just don't use these functions so JNI doesn't call them so the linker doesn't have a problem :)

@Illithidek
Copy link
Contributor Author

Basically, JNI works on the promise that somewhere out there we will add a library that will have these functions. Like an "extern" in C. If something is not invoked then the promise doesn't have to be fulfilled.
All other functions works quite well, I found these by luck because I needed to use "needsTranscoding" and a linker error appeared.

@MarkCallow MarkCallow merged commit 758fc86 into KhronosGroup:master Aug 15, 2022
@MarkCallow
Copy link
Collaborator

Thanks for the contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants