File tree 2 files changed +10
-6
lines changed
src/libretro/drivers/video/opengl
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
> breaking changes may be introduced
11
11
> at any time without warning.
12
12
13
+ ## [ 0.1.10] - 2024-06-07
14
+
15
+ ### Fixed
16
+
17
+ - Fix ` ModernGlVideoDriver.geometry ` having an incorrect return type.
18
+ - Fix ` ModernGlVideoDriver ` failing to import in Python 3.11.
19
+
13
20
## [ 0.1.9] - 2024-06-07
14
21
15
22
### Fixed
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ def __init__(
140
140
or ``None`` to use the built-in default.
141
141
:param varyings: The names of the "varyings" (vertex value outputs) to use.
142
142
"""
143
- package_files = resources .files (modules [__name__ ])
143
+ package_files = resources .files (modules [__name__ ]. __package__ )
144
144
# TODO: Support passing SPIR-V shaders as bytes
145
145
match vertex_shader :
146
146
case str ():
@@ -468,11 +468,8 @@ def active_context(self) -> HardwareContext | None:
468
468
469
469
@property
470
470
@override
471
- def geometry (self ) -> retro_game_geometry :
472
- if not self ._system_av_info :
473
- raise RuntimeError ("No system AV info has been set" )
474
-
475
- return deepcopy (self ._system_av_info .geometry )
471
+ def geometry (self ) -> retro_game_geometry | None :
472
+ return deepcopy (self ._system_av_info .geometry ) if self ._system_av_info else None
476
473
477
474
@geometry .setter
478
475
@override
You can’t perform that action at this time.
0 commit comments