Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
xianjimli committed Nov 9, 2024
1 parent 2927c9a commit 2de82b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/native_window/native_window_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,10 @@ static native_window_t* native_window_create_internal(const char* title, uint32_

#ifdef WITH_GPU_GL
sdl->context = SDL_GL_CreateContext(sdl->window);
if (sdl->context == NULL) {
log_debug("SDL_GL_CreateContext failed: %s\n", SDL_GetError());
assert(!"SDL_GL_CreateContext failed");
}
SDL_GL_SetSwapInterval(1);
#endif /*WITH_GPU_GL*/

Expand Down

0 comments on commit 2de82b8

Please sign in to comment.