Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Displayed buffer names off by one. #115

Open
MarkCallow opened this issue Feb 27, 2014 · 1 comment
Open

Displayed buffer names off by one. #115

MarkCallow opened this issue Feb 27, 2014 · 1 comment

Comments

@MarkCallow
Copy link

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.

@MarkCallow
Copy link
Author

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.

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

No branches or pull requests

1 participant