mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-16 08:05:34 -04:00
Try to get SharedDrawable non-nullable
This commit is contained in:
parent
31b44a830e
commit
51fe37a0c5
@ -47,7 +47,11 @@ import org.lwjgl.LWJGLException;
|
||||
public final class SharedDrawable extends DrawableGL {
|
||||
|
||||
public SharedDrawable(final Drawable drawable) throws LWJGLException {
|
||||
this.context = (ContextGL)((DrawableLWJGL)drawable).createSharedContext();
|
||||
if (drawable != null) {
|
||||
this.context = (ContextGL)((DrawableLWJGL)drawable).createSharedContext();
|
||||
} else {
|
||||
this.context = (ContextGL)((DrawableLWJGL)Display.getDrawable()).createSharedContext();
|
||||
}
|
||||
}
|
||||
|
||||
public ContextGL createSharedContext() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user