Skip to content

Commit

Permalink
re-enable mock and avoid using OpenGL/OpenGLES libraries via SDL2 whe…
Browse files Browse the repository at this point in the history
…n in mock
  • Loading branch information
misl6 committed Apr 21, 2024
1 parent 5b22782 commit 196ca36
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/osx_wheels_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ jobs:
runs-on: macos-latest
needs: osx_wheels_create
if: github.event_name != 'pull_request'
env:
KIVY_GL_BACKEND: 'mock'
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand Down Expand Up @@ -137,6 +139,8 @@ jobs:
python: '3.8'
- runs_on: apple-silicon-m1
python: '3.9'
env:
KIVY_GL_BACKEND: 'mock'
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }} on ${{ matrix.runs_on }}
Expand Down Expand Up @@ -209,6 +213,8 @@ jobs:
osx_app_upload_test:
runs-on: macos-latest
needs: [osx_app_create, kivy_examples_create]
env:
KIVY_GL_BACKEND: 'mock'
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_osx_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: [push, pull_request]

env:
KIVY_SPLIT_EXAMPLES: 1
KIVY_GL_BACKEND: 'mock'
CC: clang
CXX: clang
FFLAGS: '-ff2c'
Expand Down
2 changes: 1 addition & 1 deletion 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

0 comments on commit 196ca36

Please sign in to comment.