Skip to content

Commit 3b46ee0

Browse files
committed
attempting to build with setting the KIVY_GL_BACKEND only on the
condition that it's windows per this link: * kivy/kivy#3576 (comment) I also wondered if the condiiton could be if windows && if there's an issue, but someone else asked that question too. * kivy/kivy#3576 (comment) The answer was, basicly, "no". Because to do that you'd have to restart the app. I guess it's possible, but I'll try this for now *shrug*
1 parent f6dc1f3 commit 3b46ee0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/main.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
# this is needed for supporting Windows 10 with OpenGL < v2.0
22
# Example: VirtualBox w/ OpenGL v1.1
3-
#import os
4-
#os.environ['KIVY_GL_BACKEND'] = 'angle_sdl2'
5-
6-
from kivy import Config
7-
Config.set('graphics', 'multisamples', '0')
3+
import platform, os
4+
from kivy.config import Config
5+
if platform.system() == 'Windows':
6+
os.environ['KIVY_GL_BACKEND'] = 'angle_sdl2'
87

98
import kivy
109
#kivy.require('1.0.6') # replace with your current kivy version !

0 commit comments

Comments
 (0)