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

gl-430-debug, glObjectLabel shall be moved after glBind #88

Open
elect86 opened this issue Apr 10, 2019 · 0 comments
Open

gl-430-debug, glObjectLabel shall be moved after glBind #88

elect86 opened this issue Apr 10, 2019 · 0 comments

Comments

@elect86
Copy link

elect86 commented Apr 10, 2019

Hi,

according to this

the labeling shall be done after the glGen* + glBind*

So, for example here, glObjectLabel shall be moved at least after the first glBindBuffer

	glGenBuffers(buffer::MAX, &BufferName[0]);

	glObjectLabel(GL_BUFFER, BufferName[buffer::ELEMENT], -1, "Element Array Buffer object");

	glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, BufferName[buffer::ELEMENT]);
	glBufferData(GL_ELEMENT_ARRAY_BUFFER, ElementSize, ElementData, GL_STATIC_DRAW);
            glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
@elect86 elect86 changed the title gl-430-debug gl-430-debug, glObjectLabel shall be moved after glBind Apr 10, 2019
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