mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-21 03:55:05 +00:00
Force to use opengl
This commit is contained in:
parent
fdc19e7f19
commit
d41583e1a2
1 changed files with 2 additions and 0 deletions
|
@ -258,6 +258,8 @@ screen_init_rendering(struct screen *screen, const char *window_title,
|
|||
window_flags |= SDL_WINDOW_BORDERLESS;
|
||||
}
|
||||
|
||||
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengl");
|
||||
|
||||
int x = window_x != SC_WINDOW_POSITION_UNDEFINED
|
||||
? window_x : (int) SDL_WINDOWPOS_UNDEFINED;
|
||||
int y = window_y != SC_WINDOW_POSITION_UNDEFINED
|
||||
|
|
Loading…
Add table
Reference in a new issue