Explicit glFlush/glFinish before and after render operations to fix tearing and stutter on amd

This commit is contained in:
dec05eba
2024-09-06 12:41:14 +02:00
parent 239f2010f5
commit 954a41de9c
7 changed files with 33 additions and 39 deletions

View File

@@ -112,6 +112,9 @@ static void gsr_video_encoder_software_copy_textures_to_frame(gsr_video_encoder
}
encoder_software->params.egl->glBindTexture(GL_TEXTURE_2D, 0);
// cap_kms->kms.base.egl->eglSwapBuffers(cap_kms->kms.base.egl->egl_display, cap_kms->kms.base.egl->egl_surface);
encoder_software->params.egl->glFlush();
encoder_software->params.egl->glFinish();
}
static void gsr_video_encoder_software_get_textures(gsr_video_encoder *encoder, unsigned int *textures, int *num_textures, gsr_destination_color *destination_color) {