Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurred while rendering a label when contextOptions.requestWebgl1 is true #12249

Open
eclosion opened this issue Oct 12, 2024 · 1 comment

Comments

@eclosion
Copy link

What happened?

const viewer = new Cesium.Viewer("cesiumContainer", {
  contextOptions: {
      requestWebgl1: true,
  },
});

function addLabel() {
  viewer.entities.add({
    position: Cesium.Cartesian3.fromDegrees(-75.1641667, 39.9522222),
    label: {
      "text": "text",
    },
  });
}
addLabel();

the code above will produce an error:

TypeError: Failed to execute 'texSubImage2D' on 'WebGLRenderingContext': parameter 9 is not of type 'ArrayBufferView'.

here is sandcastle example

Reproduction steps

No response

Sandcastle example

No response

Environment

Browser: Chrome 129
CesiumJS Version: 1.122
Operating System: windows11

@ggetz
Copy link
Contributor

ggetz commented Oct 14, 2024

Thanks for the report @eclosion!

I believe this is a regression from #12100.

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

No branches or pull requests

2 participants