Render pretty background only in use-reflection=true mode.

This commit is contained in:
gb 2010-07-01 13:19:29 +00:00 committed by Gwenole Beauchesne
parent 7dfec25d5c
commit 028ed08f8c

View file

@ -631,7 +631,8 @@ gst_vaapisink_show_frame_glx(
if (target != GL_TEXTURE_2D || !texture) if (target != GL_TEXTURE_2D || !texture)
return FALSE; return FALSE;
render_background(sink); if (sink->use_reflection)
render_background(sink);
glEnable(target); glEnable(target);
glBindTexture(target, texture); glBindTexture(target, texture);