Make pressing the preview work again

This commit is contained in:
Benjamin Schaaf
2021-04-26 19:07:59 +10:00
parent 1bd975698c
commit d03d4b99e3
4 changed files with 93 additions and 77 deletions

View File

@@ -255,7 +255,9 @@ mp_process_pipeline_init_gl(GdkSurface *surface)
static cairo_surface_t *
process_image_for_preview(const uint8_t *image)
{
#ifdef PROFILE_DEBAYER
clock_t t1 = clock();
#endif
// Pick an available buffer
MPProcessPipelineBuffer *output_buffer = NULL;
@@ -293,8 +295,10 @@ process_image_for_preview(const uint8_t *image)
glDeleteTextures(1, &input_texture);
#ifdef PROFILE_DEBAYER
clock_t t2 = clock();
printf("%fms\n", (float)(t2 - t1) / CLOCKS_PER_SEC * 1000);
#endif
// {
// glBindTexture(GL_TEXTURE_2D, textures[1]);