Skip to content

Commit

Permalink
mock gl backend context should not be managed by sdl
Browse files Browse the repository at this point in the history
  • Loading branch information
misl6 committed Apr 21, 2024
1 parent 8bdfa9a commit b8fcf31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kivy/core/window/_window_sdl2.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ cdef class _WindowSDL2Storage:

def setup_window(self, x, y, width, height, borderless, fullscreen, resizable, state, gl_backend):
self.gl_backend_name = gl_backend
self.sdl_manages_egl_context = gl_backend != "angle"
self.sdl_manages_egl_context = gl_backend not in ("mock", "angle")

self.win_flags = SDL_WINDOW_SHOWN | SDL_WINDOW_ALLOW_HIGHDPI

Expand Down Expand Up @@ -212,7 +212,7 @@ cdef class _WindowSDL2Storage:

SDL_SetHintWithPriority(b'SDL_ANDROID_TRAP_BACK_BUTTON', b'1',
SDL_HINT_OVERRIDE)

# makes dpi aware of scale changes
if platform == "win":
SDL_SetHint(SDL_HINT_WINDOWS_DPI_SCALING, b"1")
Expand Down

0 comments on commit b8fcf31

Please sign in to comment.