diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2017-04-29 13:24:04 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2017-05-22 17:27:11 +0200 |
commit | bc041e02b310e299a59a019bd658d17838f25fd0 (patch) | |
tree | 8113870acd74e1e30c0ef04d6b17f67013900ecb /cogl | |
parent | 4b4c2b1afaac060751bdabbe6db6bc73ec8c115f (diff) | |
download | mutter-bc041e02b310e299a59a019bd658d17838f25fd0.tar.gz |
cogl: Mark vertex buffers as dynamic
Those are cached and reused across runs, which doesn't qualify to mesa
as "static" indeed. Properly marking those as dynamic is more true, and
brings in slight performance benefits just by avoiding the resulting
(and later silenced) mesa warning.
https://bugzilla.gnome.org/show_bug.cgi?id=782344
Diffstat (limited to 'cogl')
-rw-r--r-- | cogl/cogl/cogl-journal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cogl/cogl/cogl-journal.c b/cogl/cogl/cogl-journal.c index 9f11e8bc0..6b64a8931 100644 --- a/cogl/cogl/cogl-journal.c +++ b/cogl/cogl/cogl-journal.c @@ -1102,7 +1102,7 @@ upload_vertices (CoglJournal *journal, attribute_buffer = create_attribute_buffer (journal, needed_vbo_len * 4); buffer = COGL_BUFFER (attribute_buffer); - cogl_buffer_set_update_hint (buffer, COGL_BUFFER_UPDATE_HINT_STATIC); + cogl_buffer_set_update_hint (buffer, COGL_BUFFER_UPDATE_HINT_DYNAMIC); vout = _cogl_buffer_map_range_for_fill_or_fallback (buffer, 0, /* offset */ |