opengl: avoid image flickering

parent 85886f32
......@@ -163,11 +163,9 @@ void ogl_display_set_yuv_to_display(struct opengles_display* gldisp, mblk_t *yuv
}
void ogl_display_render(struct opengles_display* gldisp) {
if (!gldisp->yuv)
return;
if (!gldisp->glResourcesInitialized)
if (!gldisp->yuv || !gldisp->glResourcesInitialized) {
return;
}
GL_OPERATION(glUseProgram(gldisp->program))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment