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

Validation Failed: No vertex array object bound. Mac OS X #157

Open
caffeinum opened this issue Jan 4, 2019 · 2 comments
Open

Validation Failed: No vertex array object bound. Mac OS X #157

caffeinum opened this issue Jan 4, 2019 · 2 comments

Comments

@caffeinum
Copy link
Contributor

caffeinum commented Jan 4, 2019

Describe the bug

Build worked fine, but running does not work: app shows only the black screen. Related: #156

Console shows this error:

Validation Failed: No vertex array object bound.

To Reproduce
Steps to reproduce the behavior:

  1. clone on Mac OS X
  2. build
  3. run

Expected behavior
App runs OK.

Desktop (please complete the following information):

  • OS: Mac OS X Mojave 10.14
  • Computer: Macbook Pro Early 2015

Additional context

$ cat data/shaders/whitefill.frag
#version 140

out vec4 out_Color;

void main(void) {
	out_Color = vec4(1, 1, 1, 1);
}
@caffeinum caffeinum changed the title Shader compile bug during execution on Mac OS X Validation Failed: No vertex array object bound. Mac OS X Jan 4, 2019
@aj-sapkota
Copy link

anyone got solution of this?

@FreshSupaSulley
Copy link

I'm programming OpenGL in Java, not C++, but it should be the same concept. You can't validate your shader if you haven't assigned a VAO to the shader. glValidateProgram() checks whether the "executables contained in the program [shader] can execute given the current OpenGL state." If you haven't assigned a VAO to the shader, it can't validate because there's no VAO to check. Bind your VAO with glBindVertexArray(vaoID).

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

3 participants