You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The buffer names reported in a captured trace are off by -1 from the buffer names my program is passing to the bindBuffer and bufferData commands.
E.g, my program uses buffers 1, 2, 3, 5, 6 and 7 for vertex attributes and buffer 4 for the element index array. Each frame it updates buffers 5 & 6 and 7 The traces report that buffer 3 is being bound as the element index array and buffers 4, 5 & 6 are being updated by bufferData.
The data reported in both buffers 3 & 4 is also different from what printfs show I am passing to bufferData for the element array buffer. I do not yet know if this is also a WGI bug as my program is failing to draw anything at all, which problem I am attempting to debug.
The text was updated successfully, but these errors were encountered:
WGI is not at fault here. Sorry. I was looking at GLES2 code compiled to JS/WebGL with Emscripten which maintains a map of GL names to WebGL objects. The names I quoted above are from the Emscripten map.
I do not know how WGI gets the buffer names it shows in the trace. Presumably it is counting the createBuffer calls. However it really should not count from 0. There is never a buffer object named 0. Seeing one is confusing to experienced GL programmers.
The buffer names reported in a captured trace are off by -1 from the buffer names my program is passing to the bindBuffer and bufferData commands.
E.g, my program uses buffers 1, 2, 3, 5, 6 and 7 for vertex attributes and buffer 4 for the element index array. Each frame it updates buffers 5 & 6 and 7 The traces report that buffer 3 is being bound as the element index array and buffers 4, 5 & 6 are being updated by bufferData.
The data reported in both buffers 3 & 4 is also different from what printfs show I am passing to bufferData for the element array buffer. I do not yet know if this is also a WGI bug as my program is failing to draw anything at all, which problem I am attempting to debug.
The text was updated successfully, but these errors were encountered: