Unbind the array and element array buffers when done.

Not doing so wreaked havoc on my 2d rendering (what's he doing here, and
why's he messing with my redering? ;)
This commit is contained in:
Bill Currie 2012-01-02 10:08:56 +09:00
parent d1419c30db
commit 2ad5aa7aed

View file

@ -182,6 +182,8 @@ Mod_MakeAliasModelDisplayLists (model_t *m, aliashdr_t *hdr, void *_m, int _s,
GL_STATIC_DRAW);
// all done
qfglBindBuffer (GL_ARRAY_BUFFER, 0);
qfglBindBuffer (GL_ELEMENT_ARRAY_BUFFER, 0);
free (verts);
free (indices);
}