- fixed the last commit:

The altered vertices must always be copied to the actual buffer and it's not necessary to copy everything, copying the 4 changed ones is sufficient.
This commit is contained in:
Christoph Oelckers 2016-09-16 08:10:19 +02:00
parent 3c1868f7e6
commit 7c2886e8ea

View file

@ -220,12 +220,9 @@ void FFlatVertexBuffer::OutputResized(int width, int height)
vbo_shadowdata[6].Set((float)width, 0, 0, 0, 0); vbo_shadowdata[6].Set((float)width, 0, 0, 0, 0);
vbo_shadowdata[7].Set((float)width, (float)height, 0, 0, 0); vbo_shadowdata[7].Set((float)width, (float)height, 0, 0, 0);
if (gl.buffermethod == BM_DEFERRED) Map();
{ memcpy(map, &vbo_shadowdata[4], 4 * sizeof(FFlatVertex));
Map(); Unmap();
memcpy(map, &vbo_shadowdata[0], mNumReserved * sizeof(FFlatVertex));
Unmap();
}
} }
void FFlatVertexBuffer::BindVBO() void FFlatVertexBuffer::BindVBO()