mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-05 15:30:00 +01:00
bugfix; render with output window fullscreen
This commit is contained in:
@@ -510,6 +510,20 @@ void Rendering::draw()
|
||||
main_new_title_.clear();
|
||||
}
|
||||
|
||||
// draw output windows and count number of success
|
||||
int count = 0;
|
||||
for (auto it = outputs_.begin(); it != outputs_.end(); ++it) {
|
||||
if ( it->draw( Mixer::manager().session()->frame() ) )
|
||||
++count;
|
||||
}
|
||||
// terminate or initialize output windows to match number of output windows
|
||||
if (count > Settings::application.num_output_windows)
|
||||
outputs_[count-1].terminate();
|
||||
else if (count < Settings::application.num_output_windows) {
|
||||
outputs_[count].init( count+1, main_.window());
|
||||
outputs_[count].show();
|
||||
}
|
||||
|
||||
// operate on main window context
|
||||
main_.makeCurrent();
|
||||
|
||||
@@ -528,21 +542,6 @@ void Rendering::draw()
|
||||
|
||||
glfwSwapBuffers(main_.window());
|
||||
|
||||
|
||||
// draw output windows and count number of success
|
||||
int count = 0;
|
||||
for (auto it = outputs_.begin(); it != outputs_.end(); ++it) {
|
||||
if ( it->draw( Mixer::manager().session()->frame() ) )
|
||||
++count;
|
||||
}
|
||||
// terminate or initialize output windows to match number of output windows
|
||||
if (count > Settings::application.num_output_windows)
|
||||
outputs_[count-1].terminate();
|
||||
else if (count < Settings::application.num_output_windows) {
|
||||
outputs_[count].init( count+1, main_.window());
|
||||
outputs_[count].show();
|
||||
}
|
||||
|
||||
// software framerate limiter < 62 FPS
|
||||
{
|
||||
static GTimer *timer = g_timer_new ();
|
||||
|
||||
Reference in New Issue
Block a user