mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-25 13:31:07 +00:00
- 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:
parent
3c1868f7e6
commit
7c2886e8ea
1 changed files with 3 additions and 6 deletions
|
@ -220,12 +220,9 @@ void FFlatVertexBuffer::OutputResized(int width, int height)
|
|||
vbo_shadowdata[6].Set((float)width, 0, 0, 0, 0);
|
||||
vbo_shadowdata[7].Set((float)width, (float)height, 0, 0, 0);
|
||||
|
||||
if (gl.buffermethod == BM_DEFERRED)
|
||||
{
|
||||
Map();
|
||||
memcpy(map, &vbo_shadowdata[0], mNumReserved * sizeof(FFlatVertex));
|
||||
Unmap();
|
||||
}
|
||||
Map();
|
||||
memcpy(map, &vbo_shadowdata[4], 4 * sizeof(FFlatVertex));
|
||||
Unmap();
|
||||
}
|
||||
|
||||
void FFlatVertexBuffer::BindVBO()
|
||||
|
|
Loading…
Reference in a new issue