Skip to content

Are we SURE switching from NativeArray was the right call? Upgrading to 0.40 completely breaks Android rendering for me #53

@darrendavidhumphrey

Description

@darrendavidhumphrey

WORKS with flutter_angle 0.39 on all platforms for me

  Float32List vertexData = ....
  _gl.bindBuffer(WebGL.ARRAY_BUFFER, _vboId);
  _gl.bufferData(WebGL.ARRAY_BUFFER,vertexData, WebGL.STATIC_DRAW);

DOES NOT work with flutter_angle 0.40 on Android:

  Float32List vertexData = ....
  _gl.bindBuffer(WebGL.ARRAY_BUFFER, _vboId);
  _gl.bufferData(WebGL.ARRAY_BUFFER,vertexData.toList(), WebGL.STATIC_DRAW);

This code fails on the bufferData call with "call to OpenGL ES API with no current context (logged once per thread)"

Even if I just statically allocate a Float32List, the same code that works with 0.39 fails on 0.40

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions