diff options
author | clayjohn <claynjohn@gmail.com> | 2019-11-10 10:51:56 -0800 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2019-11-11 16:38:41 -0800 |
commit | 1253a3342381e15ff95074f31a465a18e6459991 (patch) | |
tree | 96aa77e22491c23a030d7781d228f78d934fbc09 /drivers/gles3/rasterizer_storage_gles3.cpp | |
parent | 7afa1a64eceae9a6a27d84335d79f3f9238bd277 (diff) |
Improve glBufferSubData usage where safe
Diffstat (limited to 'drivers/gles3/rasterizer_storage_gles3.cpp')
-rw-r--r-- | drivers/gles3/rasterizer_storage_gles3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp index f94020b918..2d0fd905e7 100644 --- a/drivers/gles3/rasterizer_storage_gles3.cpp +++ b/drivers/gles3/rasterizer_storage_gles3.cpp @@ -3099,7 +3099,7 @@ void RasterizerStorageGLES3::_update_material(Material *material) { } glBindBuffer(GL_UNIFORM_BUFFER, material->ubo_id); - glBufferSubData(GL_UNIFORM_BUFFER, 0, material->ubo_size, local_ubo); + glBufferData(GL_UNIFORM_BUFFER, material->ubo_size, local_ubo, GL_STATIC_DRAW); glBindBuffer(GL_UNIFORM_BUFFER, 0); } |