Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up[surfman] Unexpected WebGL error: 0x502 (1282) [BindVertexArray(None)]' #24593
Comments
|
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. |
|
Fixed as part of #24482. |
When running BabylonJS demos (like this one on servo+surfman on UWP, I get the following error in 2D mode:
cc @asajeffrey @jdm