From 643643e44706778524f0fb6ca250e6bb5193c557 Mon Sep 17 00:00:00 2001 From: Jesse Talavera Date: Fri, 7 Jun 2024 17:25:07 -0400 Subject: [PATCH] Release 0.1.10 --- CHANGELOG.md | 7 +++++++ src/libretro/drivers/video/opengl/moderngl.py | 9 +++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 37b39fd..6fe8163 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/libretro/drivers/video/opengl/moderngl.py b/src/libretro/drivers/video/opengl/moderngl.py index e415792..a4c88f0 100644 --- a/src/libretro/drivers/video/opengl/moderngl.py +++ b/src/libretro/drivers/video/opengl/moderngl.py @@ -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(): @@ -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