window->enable_opengl();
// Composite texture to screen and swap buffer
case VFrame::TEXTURE:
+ if( !flip_y ) {
+ int fh1 = command->frame->get_h()-1;
+ float in_y1 = fh1 - command->in_y1;
+ float in_y2 = fh1 - command->in_y2;
+ command->in_y1 = in_y2;
+ command->in_y2 = in_y1;
+ }
draw_output(command, flip_y);
break;
default:
BC_GL_YUV_TO_RGB(shader);
}
- if(BC_CModels::components(color_model) == 4)
- {
- glEnable(GL_BLEND);
- glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
- }
+// if(BC_CModels::components(color_model) == 4)
+// {
+// glEnable(GL_BLEND);
+// glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+// }
command->frame->draw_texture(
command->in_x1, command->in_y1, command->in_x2, command->in_y2,