Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError (null access) when -Dwebgl #67

Open
boozook opened this issue Nov 9, 2015 · 1 comment
Open

TypeError (null access) when -Dwebgl #67

boozook opened this issue Nov 9, 2015 · 1 comment

Comments

@boozook
Copy link

boozook commented Nov 9, 2015

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
Copy link
Member

Greg209 commented Nov 9, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants