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

Bind empty VAO to bufferless quad rendering #1734

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ZzzhHe
Copy link
Contributor

@ZzzhHe ZzzhHe commented Dec 27, 2024

Hey! 👋 resolve #1659

I've made some initial fixes for the bufferless quad VAO issue, but wanted to get some advice before finalizing:

  1. I tested my current code and noticed the VAO error was still there but occurred during shader validation in GlShaderProgram::use().

    This happens during program->update_uniforms(in); before geom->draw(); in GlRenderer::render().

  2. My current fix is binding the empty VAO in geometry.cpp, but I'm wondering:

  • Should we bind VAO before shader program validation?
  • Or should we handle/modify the validation error check in GlShaderProgram::use()?

appreciate your thoughts on the best approach!

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.

"GL_INVALID_OPERATION: Array object is not active" when rendering bufferless quad
1 participant