mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-06 16:00:00 +01:00
bugfix test initialization before render source
This commit is contained in:
@@ -126,7 +126,7 @@ void MediaSource::update(float dt)
|
||||
|
||||
void MediaSource::render()
|
||||
{
|
||||
if ( mode_ < Source::VISIBLE )
|
||||
if ( renderbuffer_ == nullptr )
|
||||
init();
|
||||
else {
|
||||
// render the media player into frame buffer
|
||||
|
||||
@@ -414,7 +414,7 @@ bool Source::imageProcessingEnabled()
|
||||
|
||||
void Source::render()
|
||||
{
|
||||
if ( mode_ < Source::VISIBLE )
|
||||
if ( renderbuffer_ == nullptr )
|
||||
init();
|
||||
else {
|
||||
// render the view into frame buffer
|
||||
|
||||
Reference in New Issue
Block a user