Skip to content

Conversation

ntwbvdbl-oe
Copy link
Contributor

In #21445, temporary buffers were appropriately included in dependencies. But in the following #21462 they were overlooked, resulting in errors on certain GL calls when memory size exceeded 2GiB in WebGL2. This pull request aims to fix this issue.

…in WebGL2

In emscripten-core#21445, temporary buffers were appropriately included in
dependencies. But in the following emscripten-core#21462 they were overlooked,
resulting in errors on certain GL calls when memory size exceeded 2GiB
in WebGL2. This pull request aims to fix this issue.

glUniform1iv__deps: ['$webglGetUniformLocation'
#if GL_POOL_TEMP_BUFFERS && MIN_WEBGL_VERSION == 1
#if GL_POOL_TEMP_BUFFERS && !(MIN_WEBGL_VERSION >= 2 && WEBGL_USE_GARBAGE_FREE_APIS)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this maybe reads better as (MIN_WEBGL_VERSION == 1 || !WEBGL_USE_GARBAGE_FREE_APIS).

I can read that as "if we are using WebGL 1 or we can't use the garbage free API".

I know that is kind of the opposite of how its written in the code ..

@ntwbvdbl-oe ntwbvdbl-oe requested a review from sbc100 April 25, 2024 04:23
@sbc100 sbc100 merged commit 4e7c86a into emscripten-core:main Apr 25, 2024
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