[LWJGL2] Volatile the Drawable object

This commit is contained in:
Duy Tran Khanh 2021-02-18 14:48:48 +07:00 committed by GitHub
parent 957415bc68
commit 9c5b5b9a1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ public class Display {
private static boolean window_created;
/** The Drawable instance that tracks the current Display context */
private static DrawableLWJGL drawable;
private static volatile DrawableLWJGL drawable;
private static Canvas parent;