1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-26 15:46:23 +00:00

Add ability to opt-out buffer swapping in VS::draw()

This commit is contained in:
Pedro J. Estébanez
2017-10-30 21:33:36 +01:00
parent ff03a0bc7b
commit 3aa79fc1a3
9 changed files with 16 additions and 13 deletions

View File

@@ -89,7 +89,7 @@ void VisualServerWrapMT::sync() {
}
}
void VisualServerWrapMT::draw() {
void VisualServerWrapMT::draw(bool p_swap_buffers) {
if (create_thread) {
@@ -97,7 +97,7 @@ void VisualServerWrapMT::draw() {
command_queue.push(this, &VisualServerWrapMT::thread_draw);
} else {
visual_server->draw();
visual_server->draw(p_swap_buffers);
}
}