Skip to content

Use webgl2 instead of webgl#557

Closed
optozorax wants to merge 1 commit into
not-fl3:masterfrom
optozorax:patch-3
Closed

Use webgl2 instead of webgl#557
optozorax wants to merge 1 commit into
not-fl3:masterfrom
optozorax:patch-3

Conversation

@optozorax

@optozorax optozorax commented May 21, 2025

Copy link
Copy Markdown
Contributor

Otherwise it brokes on a function readBuffer. As I understand there is no such function in webgl 1. This change works on my portals web demo.

But at the start it says:

  • Unable to get OES_vertex_array_object extension
  • Cant initialize WEBGL_depth_texture extension

Otherwise it brokes on a function `readBuffer`.
@indieleet

Copy link
Copy Markdown

This function is called from webassembly to use the appropriate webgl version. No need to change the value of getContext method. Just specify the desired WebGLVersion in Config. Default is WebGL1.

@optozorax optozorax closed this Jul 3, 2025
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