Navigation Menu

Skip to content

Commit

Permalink
kmsdrm: Remove debug printfs in SwapWindow.
Browse files Browse the repository at this point in the history
  • Loading branch information
vanfanel committed Sep 6, 2020
1 parent d7aebbd commit d3d9d43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/video/kmsdrm/SDL_kmsdrmopengles.c
Expand Up @@ -101,7 +101,7 @@ KMSDRM_GLES_SwapWindow(_THIS, SDL_Window * window)
/* Mark, at EGL level, the buffer that we want to become the new front buffer.
However, it won't really happen until we request a pageflip at the KMS level and it completes. */
if (! _this->egl_data->eglSwapBuffers(_this->egl_data->egl_display, windata->egl_surface)) {
return SDL_SetError("Failed to swap EGL buffers");
SDL_EGL_SetError("Failed to swap EGL buffers", "eglSwapBuffers");
}

/* It's safe to get the gpu_fence FD now, because eglSwapBuffers flushes it down the cmdstream,
Expand Down Expand Up @@ -228,7 +228,6 @@ KMSDRM_GLES_SwapWindowDB(_THIS, SDL_Window * window)
However, it won't really happen until we request a pageflip at the KMS level and it completes. */
if (! _this->egl_data->eglSwapBuffers(_this->egl_data->egl_display, windata->egl_surface)) {
SDL_EGL_SetError("Failed to swap EGL buffers", "eglSwapBuffers");
printf("SwapWindow() failed: %s\n", SDL_GetError());
}

/* Lock the buffer that is marked by eglSwapBuffers() to become the next front buffer (so it can not
Expand Down

0 comments on commit d3d9d43

Please sign in to comment.