1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Fix vertices buffer initialization.

Fixed missing polygons in Rat Attack intro.
This commit is contained in:
Sergey Lipskiy 2014-12-15 14:53:21 +06:00
parent fbefc49c15
commit e555d6edf5

View File

@ -1225,6 +1225,8 @@ void OGLRender::_initData()
memset(triangles.vertices, 0, VERTBUFF_SIZE * sizeof(SPVertex));
memset(triangles.elements, 0, ELEMBUFF_SIZE * sizeof(GLubyte));
for (u32 i = 0; i < VERTBUFF_SIZE; ++i)
triangles.vertices[i].w = 1.0f;
triangles.num = 0;
#ifdef __TRIBUFFER_OPT