Guard GLObject reference

This commit is contained in:
Joshua Granick
2018-01-18 09:36:30 -08:00
parent 3d75484f43
commit 2fe875b992

View File

@@ -3807,6 +3807,7 @@ class NativeGLRenderContext {
} }
#if (!js || !html5 || display)
private function __createObject (id:Int):GLObject { private function __createObject (id:Int):GLObject {
return new GLObject (id); return new GLObject (id);
@@ -3819,6 +3820,7 @@ class NativeGLRenderContext {
return (object == null) ? 0 : object.id; return (object == null) ? 0 : object.id;
} }
#end
private function __initialize ():Void { private function __initialize ():Void {