mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user