Skip to content

Commit

Permalink
<Update>[Pygame 2.0.1]: Fixed OpenGL issue
Browse files Browse the repository at this point in the history
Update infrastructure include python 3.9.1

[#66]
[#72]
  • Loading branch information
Humberto Sanchez II committed Mar 13, 2021
1 parent a7bb8b5 commit 468a5bc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ __pycache__/
/python3_albow.egg-info/
/site/
/docs/
/venv-pyenv-3.9.1/
/venv-pyenv-3.9.0/
/venv-pyenv-3.8.5/

4 changes: 2 additions & 2 deletions albow/core/ui/RootWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from pygame.event import set_grab

from pygame.locals import USEREVENT
# from pygame.locals import OPENGL
from pygame.locals import OPENGL

from albow.core.ui.Widget import Widget

Expand Down Expand Up @@ -99,7 +99,7 @@ def __init__(self, surface: Surface, **kwds):
RootWidget.root_widget = self
Widget.root_widget = self

# self.is_gl = surface.get_flags() & OPENGL != 0
self.is_gl = surface.get_flags() & OPENGL != 0
self.is_gl: bool = False # in pygame 2.0.0 I cannot support Open GL
RootWidget.classLogger.info(f"self.is_gl: {self.is_gl}")
if self.is_gl:
Expand Down
10 changes: 4 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
pygame==2.0.0
PyOpenGL==3.1.5
PyOpenGL_accelerate==3.1.5
wheel==0.35.1
setuptools==50.3.2
twine==3.2.0
pygame~=2.0.1
wheel~=0.35.1
setuptools~=54.1.1
twine~=3.3.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
url="https://github.com/hasii2011/albow-python-3",
packages=find_packages(),
include_package_data=True,
install_requires=['pygame', 'PyOpenGL', 'PyOpenGL-accelerate']
install_requires=['pygame']
)

0 comments on commit 468a5bc

Please sign in to comment.