Don't enable AVIWriter if PBO is not usable
This commit is contained in:
parent
8259026ac1
commit
88cbcd202c
@ -1896,11 +1896,15 @@ void IrrDriver::update(float dt)
|
||||
// ----------------------------------------------------------------------------
|
||||
void IrrDriver::setRecording(bool val)
|
||||
{
|
||||
#ifndef SERVER_ONLY
|
||||
if (!CVS->isARBPixelBufferObjectUsable())
|
||||
return;
|
||||
if (val == false && m_recording == false)
|
||||
return;
|
||||
m_recording = val;
|
||||
if (val == false)
|
||||
AVIWriter::getInstance()->stopRecording();
|
||||
#endif
|
||||
} // setRecording
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@ -575,4 +575,4 @@ public:
|
||||
|
||||
extern IrrDriver *irr_driver;
|
||||
|
||||
#endif // HEADER_IRR_DRIVER_HPP
|
||||
#endif // HEADER_IRR_DRIVER_HPP
|
||||
|
Loading…
Reference in New Issue
Block a user