Skip to content

[surfman] Unexpected WebGL error: 0x502 (1282) [BindVertexArray(None)]' #24593

Closed

Description

@Manishearth

When running BabylonJS demos (like this one on servo+surfman on UWP, I get the following error in 2D mode:

WebGL thread' panicked at 'assertion failed: `(left == right)`
  left: `1282`,
 right: `0`: Unexpected WebGL error: 0x502 (1282) [BindVertexArray(None)]', components\canvas\webgl_thread.rs:1749:9

cc @asajeffrey @jdm

Activity

  1. jdm commented on Oct 30, 2019

    @jdm
    Member

    I think there are a couple issues at play here, but fundamentally it seems like it's our mistake. We enable the OES_vertex_array_object webgl extension based on the GL_OES_vertex_array_object/GL_ARB_vertex_array_object extensions reported by the driver. These extensions provide GenVertexArraysOES/BindVertexArraysOES/IsVertexArraysOES/DeleteVertexArraysOES functions, but we're not using those in sparkle: https://github.com/servo/sparkle/blob/94325e87bc18c697045be5b17ceb37f04acd9431/src/lib.rs#L78-L86

    We're generating bindings for ES3 which include these functions (https://github.com/servo/sparkle/blob/94325e87bc18c697045be5b17ceb37f04acd9431/build.rs#L38), but requesting ES2 contexts which don't support them.

  2. jdm commented on Nov 1, 2019

    @jdm
    Member

    Fixed as part of #24482.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/webglA-xr-zomg

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions