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