You've already forked godot
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user