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

OpenGLView is not initialised on HerokuShaders for html5 #38

Open
mikedotalmond opened this issue Oct 28, 2015 · 0 comments
Open

OpenGLView is not initialised on HerokuShaders for html5 #38

mikedotalmond opened this issue Oct 28, 2015 · 0 comments

Comments

@mikedotalmond
Copy link

With the supplied project.xml build file, the HerokuShaders example does not work on html5 - the call to OpenGLView.isSupported returns false.

I first assumed that I'd need the -D webgl flag, but that didn't work either - OpenGLView.isSupported will return true but the webgl context is not initialised (at runtime lime_graphics_opengl_GL.context is null). So I had to investigate the code in OpenGLView.

It seems to need the -D dom flag setting to work properly on html5. But it's not clear if -D webgl is also needed or of any benefit.

Adding <haxeflag name"-D dom" if="html5" /> to project.xml fixes the issue.

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

1 participant