mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 19:55:07 +02:00
Use stream draw for object position updates
This commit is contained in:
parent
587d015c57
commit
92fa1d5776
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ void GL45Backend::transferTransformState(const Batch& batch) const {
|
|||
}
|
||||
|
||||
if (!batch._objects.empty()) {
|
||||
glNamedBufferData(_transform._objectBuffer, batch._objects.size() * sizeof(Batch::TransformObject), batch._objects.data(), GL_DYNAMIC_DRAW);
|
||||
glNamedBufferData(_transform._objectBuffer, batch._objects.size() * sizeof(Batch::TransformObject), batch._objects.data(), GL_STREAM_DRAW);
|
||||
}
|
||||
|
||||
if (!batch._namedData.empty()) {
|
||||
|
|
Loading…
Reference in a new issue