Skip to content

Commit 94685e0

Browse files
committed
Add assertion after glGenBuffers
1 parent a9b9b3e commit 94685e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pathfinder/gpu/gl/buffer.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "buffer.h"
22

3+
#include <cassert>
4+
35
#include "../../common/logger.h"
46
#include "debug_marker.h"
57

@@ -11,6 +13,7 @@ BufferGl::BufferGl(const BufferDescriptor &desc) : Buffer(desc) {
1113
}
1214

1315
glGenBuffers(1, &gl_id_);
16+
assert(gl_id_ != 0);
1417

1518
GLint target = GL_NONE;
1619

0 commit comments

Comments
 (0)