Skip to content

Commit 468a5bc

Browse files
author
Humberto Sanchez II
committed
<Update>[Pygame 2.0.1]: Fixed OpenGL issue
Update infrastructure include python 3.9.1 [#66] [#72]
1 parent a7bb8b5 commit 468a5bc

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ __pycache__/
77
/python3_albow.egg-info/
88
/site/
99
/docs/
10+
/venv-pyenv-3.9.1/
1011
/venv-pyenv-3.9.0/
1112
/venv-pyenv-3.8.5/
1213

albow/core/ui/RootWidget.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from pygame.event import set_grab
2222

2323
from pygame.locals import USEREVENT
24-
# from pygame.locals import OPENGL
24+
from pygame.locals import OPENGL
2525

2626
from albow.core.ui.Widget import Widget
2727

@@ -99,7 +99,7 @@ def __init__(self, surface: Surface, **kwds):
9999
RootWidget.root_widget = self
100100
Widget.root_widget = self
101101

102-
# self.is_gl = surface.get_flags() & OPENGL != 0
102+
self.is_gl = surface.get_flags() & OPENGL != 0
103103
self.is_gl: bool = False # in pygame 2.0.0 I cannot support Open GL
104104
RootWidget.classLogger.info(f"self.is_gl: {self.is_gl}")
105105
if self.is_gl:

requirements.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
pygame==2.0.0
2-
PyOpenGL==3.1.5
3-
PyOpenGL_accelerate==3.1.5
4-
wheel==0.35.1
5-
setuptools==50.3.2
6-
twine==3.2.0
1+
pygame~=2.0.1
2+
wheel~=0.35.1
3+
setuptools~=54.1.1
4+
twine~=3.3.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
url="https://github.com/hasii2011/albow-python-3",
2424
packages=find_packages(),
2525
include_package_data=True,
26-
install_requires=['pygame', 'PyOpenGL', 'PyOpenGL-accelerate']
26+
install_requires=['pygame']
2727
)

0 commit comments

Comments
 (0)