mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 14:35:58 +00:00
Merge preparation.
This commit is contained in:
parent
c9e1319fc6
commit
bab22f696b
3 changed files with 6 additions and 14 deletions
|
|
@ -107,14 +107,13 @@ final class CallbackUtil {
|
|||
* @param user_data the global reference pointer
|
||||
*/
|
||||
static void registerCallback(final CLContext context, final long user_data) {
|
||||
if ( context.getPointerUnsafe() == 0 ) {
|
||||
if ( user_data != 0 )
|
||||
deleteGlobalRef(user_data);
|
||||
if ( user_data == 0 )
|
||||
return;
|
||||
}
|
||||
|
||||
if ( user_data != 0 )
|
||||
if ( context.isValid() )
|
||||
contextUserData.put(context, user_data);
|
||||
else
|
||||
deleteGlobalRef(user_data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue