diff options
author | kcgen <kcgen@users.noreply.github.com> | 2022-11-10 20:19:27 +0300 |
---|---|---|
committer | kcgen <kcgen@users.noreply.github.com> | 2022-11-10 20:19:27 +0300 |
commit | eb15b52e03f27c887cc411e542d8e815dc6968b1 (patch) | |
tree | b5b2c19a9791d2de5e55952d5f3da0eb26d33e0d | |
parent | 8dae2ba60860d4817d04c46703a32e0358790c6c (diff) |
Fix a typo when screen-capturing to handle non-OpenGL systems
-rw-r--r-- | src/gui/sdlmain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index d26c019da..3df1100a6 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -3440,7 +3440,7 @@ static std::optional<SDL_Surface *> get_rendered_surface() // Get the SDL texture-renderer surface // ------------------------------------ - else if (sdl.desktop.type == SCREEN_TEXTURE) { + if (sdl.desktop.type == SCREEN_TEXTURE) { // Get the renderer's pixel format SDL_RendererInfo rinfo; if (SDL_GetRendererInfo(renderer, &rinfo) != 0) { |