Skip to content

Commit

Permalink
Release 0.1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseTG committed Jun 7, 2024
1 parent 8a2e091 commit 643643e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
> breaking changes may be introduced
> at any time without warning.
## [0.1.10] - 2024-06-07

### Fixed

- Fix `ModernGlVideoDriver.geometry` having an incorrect return type.
- Fix `ModernGlVideoDriver` failing to import in Python 3.11.

## [0.1.9] - 2024-06-07

### Fixed
Expand Down
9 changes: 3 additions & 6 deletions src/libretro/drivers/video/opengl/moderngl.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def __init__(
or ``None`` to use the built-in default.
:param varyings: The names of the "varyings" (vertex value outputs) to use.
"""
package_files = resources.files(modules[__name__])
package_files = resources.files(modules[__name__].__package__)
# TODO: Support passing SPIR-V shaders as bytes
match vertex_shader:
case str():
Expand Down Expand Up @@ -468,11 +468,8 @@ def active_context(self) -> HardwareContext | None:

@property
@override
def geometry(self) -> retro_game_geometry:
if not self._system_av_info:
raise RuntimeError("No system AV info has been set")

return deepcopy(self._system_av_info.geometry)
def geometry(self) -> retro_game_geometry | None:
return deepcopy(self._system_av_info.geometry) if self._system_av_info else None

@geometry.setter
@override
Expand Down

0 comments on commit 643643e

Please sign in to comment.