mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
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:
parent
5bafdcbfa3
commit
66e533deee
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@
|
|||
GlGpuBuffer::GlGpuBuffer()
|
||||
{
|
||||
GL_CHECK(glGenBuffers(1, &mGlBufferId));
|
||||
assert(mGlBufferId != GL_INVALID_VALUE);
|
||||
assert(mGlBufferId != 0);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue