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

Fix webgl2 instancing bug #1512

Merged
merged 1 commit into from
Oct 1, 2018
Merged

Conversation

hugoam
Copy link
Contributor

@hugoam hugoam commented Oct 1, 2018

There is a bug which cause instancing to simply fail with WebGL 2
The cause is that the instancing attributes are never disabled after having been used. In WebGL 2, specifically, this will cause the next draw call to fail. This fixes the problem by disabling instancing attributes when they were used.

@bkaradzic bkaradzic merged commit 50a64a7 into bkaradzic:master Oct 1, 2018
pigpigyyy added a commit to pigpigyyy/bgfx that referenced this pull request Nov 29, 2018
* master: (63 commits)
  Updated glslang.
  shaderc: Updated version.
  Updated docs.
  Added frame buffer resolve control.
  Updated ImGui.
  Add Unbind Attributes (bkaradzic#1515)
  Added numBackBuffers to initialization parameters.
  01-cubes: Fixed topology to match combo box.
  Updated glslang.
  Fix webgl2 instancing bug (bkaradzic#1512)
  Updated ImGui.
  Updated docs.
  Cleanup.
  Fixed caps.
  Fixed depth format validation.
  Fixed bkaradzic#1431.
  Cleanup.
  Metal: Added magnification filter setting.
  Updated ImGui.
  Updated ImGui.
  ...
pigpigyyy added a commit to pigpigyyy/bgfx that referenced this pull request Oct 14, 2022
* master: (161 commits)
  Updated glslang.
  shaderc: Updated version.
  Updated docs.
  Added frame buffer resolve control.
  Updated ImGui.
  Add Unbind Attributes (bkaradzic#1515)
  Added numBackBuffers to initialization parameters.
  01-cubes: Fixed topology to match combo box.
  Updated glslang.
  Fix webgl2 instancing bug (bkaradzic#1512)
  Updated ImGui.
  Updated docs.
  Cleanup.
  Fixed caps.
  Fixed depth format validation.
  Fixed bkaradzic#1431.
  Cleanup.
  Metal: Added magnification filter setting.
  Updated ImGui.
  Updated ImGui.
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants