From b9b8c1c8d84dd373f293e735d70bc3ad283db5f8 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Wed, 31 Oct 2012 19:18:43 +0100 Subject: [PATCH] glthread: allocate enough memory or tuxtxt backbuffer Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/857cb350cb430fa4f0ef2bcfca46543dfa9e7847 Author: Stefan Seyfried Date: 2012-10-31 (Wed, 31 Oct 2012) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/driver/glthread.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/driver/glthread.cpp b/src/driver/glthread.cpp index 0219b93a0..302a5e498 100644 --- a/src/driver/glthread.cpp +++ b/src/driver/glthread.cpp @@ -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); } }