away3d / away3d-core-openfl

Away3D engine for OpenFL
166 stars 41 forks source link

TypeError (null access) when -Dwebgl #67

Open boozook opened 8 years ago

boozook commented 8 years ago

Not works basic example (lime create away3d:Basic_View) built with -D debug & -D webgl.

Part of project.xml:

    <!--<haxedef name="dom" if="html5"/>-->
    <haxedef name="webgl" if="html5"/>

    <!-- DEBUG -->
    <set name="debug"/>
    <haxedef name="debug" if="debug"/>

In runtime got exception:

TypeError: null is not an object (evaluating 'lime_graphics_opengl_GL.context.enable')
configureBackBufferAwayCube.js:62795
onContext3DUpdateAwayCube.js:13540:99
fAwayCube.js:69262:247
__dispatchEventAwayCube.js:197
dispatchEventAwayCube.js:130
(anonymous function)AwayCube.js:62585
runAwayCube.js:32701
(anonymous function)AwayCube.js:32692

screen shot 2015-11-09 at 22 48 32

Greg209 commented 8 years ago

Currently away3d for openfl only supports -Ddom on the command line or and not the 'webgl' flag for the HTML5 target.

I'm going to leave this open for the time being as ideally, using the webgl flag should also work.