mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
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:
parent
d1419c30db
commit
2ad5aa7aed
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue