glBufferSubData & sTRACE_WEBGL_CALLS

15 views
Skip to first unread message

Dieter Weidenbrück (dweidenbrueck)

unread,
Feb 21, 2024, 2:27:22 PMFeb 21
to emscripten-discuss
Hi,

it looks like there may be an issue with glBufferSubData tracing.
Take any example using glBufferSubData and compile with
-sMIN_WEBGL_VERSION=2
-sMAX_WEBGL_VERSION=2
So far, so good.
Now add
-sTRACE_WEBGL_CALLS=1

it looks like the call is using a wrong hook during tracing. It misses the last parameter.
This leads to a buffer overflow error.
Switching off tracing returns everything to normal.

The problem did not exist when I was using WebGL version 1.

Thanks for any idea how to get around this.

Sam Clegg

unread,
Feb 21, 2024, 3:32:12 PMFeb 21
to emscripte...@googlegroups.com
This looks like an issue with `hookGLFunction` in `library_webgl.js`.   Would you mind opening a bug?

cheers,
sam

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/7f5ab91e-627a-49be-98ba-33e5d648031cn%40googlegroups.com.

Sam Clegg

unread,
Feb 21, 2024, 8:05:48 PMFeb 21
to emscripte...@googlegroups.com

Dieter Weidenbrück (dweidenbrueck)

unread,
Feb 22, 2024, 2:01:38 AMFeb 22
to emscripten-discuss
Wow, that was fast, thanks a lot!

Reply all
Reply to author
Forward
0 new messages