Skip to content

dart2js transpiled WebGL2 code works in dartium but not in chrome (ddc is other way round)  #29308

@robertmuth

Description

@robertmuth

First off, Dartium 45 supports WebGL2 when configured properly.
To activate WebGL2 support launch dartium with "--enable-unsafe-es3-apis"
you may also need to enable the following under chrome://flags :

  • Override software rendering list
  • Enable WebGL Draft Extensions

You can make sure that webgl2 is working in dartium at http://webglreport.com/?v=2

The problem can be reproduce with the webgl2 branch of the chronosgl library: https://github.com/ChronosTeam/ChronosGL/tree/webgl2

First try the straight up dart example/simple/simple.html in dartium - this should work

Next transpile the example with dart2js
make simple_example
which will print a url to try
that url works with dartium 45 but not on any current chrome version

Next transpile the example with ddc
make -f Makefile.lib simple_example
which will also print a url to try
that url works on recent chrome but not dartium 45

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions