pcbjam/tests/gal-regression/wasm
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Viktor Vaczi 7617acf8b5 fix(webgl): Add VAO support for WebGL 2.0 rendering
WebGL 2.0 / OpenGL ES 3.0 requires a Vertex Array Object (VAO) to be
bound before setting vertex attributes. Desktop OpenGL has a default
VAO (VAO 0), but WebGL 2.0 does not.

Changes to GPU_MANAGER:
- Add m_vao member variable to store VAO handle
- Create VAO in SetShader() when GL context is available
- Bind VAO before glVertexAttribPointer calls in EndDrawing()
- Unbind VAO after rendering completes
- Delete VAO in destructor

This fix enables actual rendering output in WebGL. Without a VAO,
glVertexAttribPointer silently fails and no geometry is drawn.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 11:19:16 +01:00
..
generated feat(webgl): Replace legacy GL with modern OpenGL ES 3.0 2026-01-07 23:33:49 +01:00
webgl fix(webgl): Add VAO support for WebGL 2.0 rendering 2026-01-08 11:19:16 +01:00
gal_webgl_test.cpp feat(webgl): Enable all 28 scenarios for WebGL test harness 2026-01-08 11:11:03 +01:00
gal_webgl_test.html feat(webgl): Enable all 28 scenarios for WebGL test harness 2026-01-08 11:11:03 +01:00
generate_shaders.py feat(webgl): Replace legacy GL with modern OpenGL ES 3.0 2026-01-07 23:33:49 +01:00
legacy_gl_stubs.js feat(webgl): Fix WebGL GAL rendering with proper coordinate setup 2026-01-08 10:13:11 +01:00
Makefile feat(webgl): Enable all 28 scenarios for WebGL test harness 2026-01-08 11:11:03 +01:00
wasm_stubs.cpp feat(webgl): Replace legacy GL with modern OpenGL ES 3.0 2026-01-07 23:33:49 +01:00