mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 05:41:45 +00:00
Fixed crash on AMD hardware (resolves #820 reported by AlexMax)
This commit is contained in:
parent
ba3e0437b3
commit
30548f1765
1 changed files with 5 additions and 1 deletions
|
@ -607,7 +607,11 @@ bool GLRenderDevice::SetVertexBufferData(VertexBuffer* ibuffer, void* data, int6
|
|||
buffer->BufferStartIndex = buffer->BufferOffset / (format == VertexFormat::Flat ? VertexBuffer::FlatStride : VertexBuffer::WorldStride);
|
||||
sharedbuf->NextPos += size;
|
||||
|
||||
glBufferSubData(GL_ARRAY_BUFFER, buffer->BufferOffset, size, data);
|
||||
if (data)
|
||||
{
|
||||
glBufferSubData(GL_ARRAY_BUFFER, buffer->BufferOffset, size, data);
|
||||
}
|
||||
|
||||
glBindBuffer(GL_ARRAY_BUFFER, oldbinding);
|
||||
bool result = CheckGLError();
|
||||
return result;
|
||||
|
|
Loading…
Reference in a new issue