Log in terminal if recording isn't supported

This commit is contained in:
Benau 2017-03-24 08:51:42 +08:00
parent 2660a5b332
commit 372ce6923c

View File

@ -1904,7 +1904,10 @@ void IrrDriver::setRecording(bool val)
{
#if !(defined(SERVER_ONLY) || defined(USE_GLES2))
if (!CVS->isARBPixelBufferObjectUsable())
{
Log::warn("irr_driver", "PBO extension missing, can't record video.");
return;
}
if (m_recording == val)
return;
m_recording = val;