glthread: blit OSD manually

to help debugging of framebuffer issues, only blit the openGL
framebuffer after an explicit blit() call
This commit is contained in:
Stefan Seyfried
2013-04-06 12:06:18 +02:00
parent 069bf46578
commit 843e9f395a
3 changed files with 16 additions and 1 deletions

View File

@@ -338,7 +338,12 @@ void GLThreadObj::render() {
}
// bltDisplayBuffer(); /* decoded video stream */
bltOSDBuffer(); /* OSD */
if (mState.blit) {
/* only blit manually after fb->blit(), this helps to find missed blit() calls */
mState.blit = false;
//fprintf(stderr, "blit!\n");
bltOSDBuffer(); /* OSD */
}
glBindTexture(GL_TEXTURE_2D, mState.osdtex);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);