I forgot DRAW_ID and VERTEX need the same counts;
@@ -33,7 +33,7 @@ static void onResizeWindow(int width, int height) {
static const size_t BUFFER_COUNTS[] = {
[STREAM_VERTEX] = (1 << 16) - 1,
[STREAM_INDEX] = 1 << 16,
- [STREAM_DRAW_ID] = 1 << 16,
+ [STREAM_DRAW_ID] = (1 << 16) - 1,
[STREAM_DRAW_DATA] = 256 * MAX_BATCHES * 2
};
