"GL_INVALID_OPERATION
: Array object is not active" when rendering bufferless quad
#1659
Labels
area: renderer
Concerns our graphics renderer
bug
Behaving differently as it should behave
good first issue
Suitable for newcomers
lang: c++
Done in C++ code
opengl
Description
OpenGL generates an error when a bufferless quad is drawn but no VAO is bound. This can happen in the renderer here (line 57):
openage/libopenage/renderer/opengl/geometry.cpp
Lines 56 to 58 in 29df8ac
Even though
glDrawArrays
doesn't read from a buffer, it requires a VAO as stated in the OpenGL Wiki:How To Reproduce
GlGeometry
object with a bufferless quad, e.g. withrenderer::opengl::GlRenderer::add_bufferless_quad()
Expected Behavior
An empty VAO should be created and bound when trying to render a bufferless quad.
The text was updated successfully, but these errors were encountered: