glthread: allocate enough memory or tuxtxt backbuffer

Origin commit data
------------------
Branch: ni/coolstream
Commit: 857cb350cb
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-10-31 (Wed, 31 Oct 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2012-10-31 19:18:43 +01:00
parent fcc5c347c3
commit b9b8c1c8d8

View File

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