glthread: allocate enough memory or tuxtxt backbuffer

This commit is contained in:
Stefan Seyfried
2012-10-31 19:18:43 +01:00
parent 8e46250c7c
commit 857cb350cb

View File

@@ -229,8 +229,10 @@ void GLThreadObj::setupOSDBuffer()
// mMutex.lock();
if(mState.width && mState.height)
{
mOSDBuffer.resize(mState.width * mState.height * 4);
printf("OSD buffer set to %d bytes\n", mState.width * mState.height * 4);
/* 32bit FB depth, *2 because tuxtxt uses a shadow buffer */
int fbmem = mState.width * mState.height * 4 * 2;
mOSDBuffer.resize(fbmem);
printf("OSD buffer set to %d bytes\n", fbmem);
}
}