add olaf de.po, opengl bg clr, asset drag select tweak
[goodguy/history.git] / cinelerra-5.1 / guicast / vframe3d.C
index 35f1ac69d9b1766955dd1eabe8b0df35a59d834c..65eb1f3e92ff6a5def475444ac0b9eec810b859a 100644 (file)
@@ -427,10 +427,8 @@ void VFrame::dump_shader(int shader_id)
 void VFrame::clear_pbuffer()
 {
 #ifdef HAVE_GL
-       if(BC_CModels::is_yuv(get_color_model()))
-               glClearColor(0.0, 0.5, 0.5, 0.0);
-       else
-               glClearColor(0.0, 0.0, 0.0, 0.0);
+       float gbuv = BC_CModels::is_yuv(get_color_model()) ? 0.5 : 0;
+       glClearColor(0.0, gbuv, gbuv, 0.0);
        glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
 #endif
 }