Skip to content

Commit

Permalink
Revert "Use GLES context when ES2 is forced (kivy#6844)"
Browse files Browse the repository at this point in the history
This reverts commit 40fc630.
  • Loading branch information
matham authored Apr 29, 2020
1 parent b05ce70 commit 6d6db1b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions kivy/core/window/_window_sdl2.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,6 @@ cdef class _WindowSDL2Storage:
Logger.info("Window: Activate GLES2/ANGLE context")
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, 4)
SDL_SetHint(SDL_HINT_VIDEO_WIN_D3DCOMPILER, "none")
elif kivy_opengl_es2:
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES)

if x is None:
x = SDL_WINDOWPOS_UNDEFINED
Expand Down
5 changes: 0 additions & 5 deletions kivy/lib/sdl2.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@ cdef extern from "SDL.h":
SDL_GL_CONTEXT_FLAGS
SDL_GL_CONTEXT_PROFILE_MASK

ctypedef enum SDL_GLprofile:
SDL_GL_CONTEXT_PROFILE_CORE = 0x0001
SDL_GL_CONTEXT_PROFILE_COMPATIBILITY = 0x0002
SDL_GL_CONTEXT_PROFILE_ES = 0x0004

ctypedef enum SDL_SystemCursor:
SDL_SYSTEM_CURSOR_ARROW
SDL_SYSTEM_CURSOR_IBEAM
Expand Down

0 comments on commit 6d6db1b

Please sign in to comment.