gl_engine: Fix mistake in glbuffer id check

`GL_INVALID_VALUE` is generate during `glGenBuffers` and is checked by
calling `glGetError()` inside `GL_CHECK` macro.

While the buffer id is valid if the value is not zero.
This commit is contained in:
RuiwenTang 2023-08-17 18:23:10 +08:00 committed by Hermet Park
parent 5bafdcbfa3
commit 66e533deee

View file

@ -29,7 +29,7 @@
GlGpuBuffer::GlGpuBuffer()
{
GL_CHECK(glGenBuffers(1, &mGlBufferId));
assert(mGlBufferId != GL_INVALID_VALUE);
assert(mGlBufferId != 0);
}