dungeon_crawler
diff prototype/src/light.cc @ 27:cbf86e5198a9
fized the vbo state creep
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 25 Aug 2012 14:37:51 +0300 |
parents | 527fede30057 |
children | 2fc004802739 |
line diff
1.1 --- a/prototype/src/light.cc Sat Aug 25 04:07:51 2012 +0300 1.2 +++ b/prototype/src/light.cc Sat Aug 25 14:37:51 2012 +0300 1.3 @@ -46,6 +46,7 @@ 1.4 1.5 glDrawArrays(GL_TRIANGLES, 0, num_faces * 3); 1.6 1.7 + glBindBuffer(GL_ARRAY_BUFFER, 0); 1.8 glDisableClientState(GL_VERTEX_ARRAY); 1.9 } 1.10 1.11 @@ -164,6 +165,7 @@ 1.12 } 1.13 } 1.14 glUnmapBuffer(GL_ARRAY_BUFFER); 1.15 + glBindBuffer(GL_ARRAY_BUFFER, 0); 1.16 return true; 1.17 } 1.18