Skip to content

Calls to bufferData break WebGL Inspector if data is passed as ArrayBuffer #55

Description

@willeastcott

Valid prototypes for bufferData are:

void bufferData(GLenum target, GLsizeiptr size, GLenum usage);
void bufferData(GLenum target, ArrayBufferView data, GLenum usage);
void bufferData(GLenum target, ArrayBuffer data, GLenum usage);

However, if you use the last one, WebGL Inspector fails on the following line:

            var sourceView = new DataView(arg, 0, source.byteLength);

The exception is that source is undefined. Wrapping the ArrayBuffer passed to bufferData with a typed array works.

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