diff options
Diffstat (limited to 'src/capture/nvfbc.c')
-rw-r--r-- | src/capture/nvfbc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/capture/nvfbc.c b/src/capture/nvfbc.c index 80fbaa8..b7e6bb5 100644 --- a/src/capture/nvfbc.c +++ b/src/capture/nvfbc.c @@ -408,11 +408,17 @@ static int gsr_capture_nvfbc_capture(gsr_capture *cap, AVFrame *frame, gsr_color return 0; } + cap_nvfbc->params.egl->glFlush(); + cap_nvfbc->params.egl->glFinish(); + gsr_color_conversion_draw(color_conversion, cap_nvfbc->setup_params.dwTextures[grab_params.dwTextureIndex], (vec2i){0, 0}, (vec2i){frame->width, frame->height}, (vec2i){0, 0}, (vec2i){frame->width, frame->height}, 0.0f, false); + cap_nvfbc->params.egl->glFlush(); + cap_nvfbc->params.egl->glFinish(); + return 0; } |