Reserve 0 in the framebuffer thing (WIP)

This commit is contained in:
Luke Benstead 2019-03-11 19:24:08 +00:00
parent 032d56ce5a
commit 8b13e3adaf

View File

@ -18,6 +18,9 @@ static NamedArray FRAMEBUFFERS;
void _glInitFramebuffers() { void _glInitFramebuffers() {
named_array_init(&FRAMEBUFFERS, sizeof(FrameBuffer), 32); named_array_init(&FRAMEBUFFERS, sizeof(FrameBuffer), 32);
// Reserve zero so that it is never given to anyone as an ID!
named_array_reserve(&FRAMEBUFFERS, 0);
} }
void _glWipeTextureOnFramebuffers(GLuint texture) { void _glWipeTextureOnFramebuffers(GLuint texture) {