mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-04 22:17:59 +00:00
reordered context destruction - fixing some invalidation issues
This commit is contained in:
parent
fc770dc67e
commit
79a394c749
1 changed files with 2 additions and 2 deletions
|
|
@ -357,10 +357,10 @@ public final class ALC10 {
|
|||
*/
|
||||
public static void alcDestroyContext(ALCcontext context) {
|
||||
synchronized(ALC10.contexts) {
|
||||
nalcDestroyContext(getContext(context));
|
||||
context.setInvalid();
|
||||
ALCdevice device = alcGetContextsDevice(context);
|
||||
nalcDestroyContext(getContext(context));
|
||||
device.removeContext(context);
|
||||
context.setInvalid();
|
||||
}
|
||||
}
|
||||
native static void nalcDestroyContext(long context);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue