File tree 2 files changed +17
-0
lines changed
src/libretro/drivers/video/opengl
2 files changed +17
-0
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.11] - 2024-06-10
14
+
15
+ ### Changed
16
+
17
+ - Raise a warning when the core's requested maximum framebuffer size
18
+ is larger than what the OpenGL implementation can provide.
19
+
13
20
## [ 0.1.10] - 2024-06-07
14
21
15
22
### Fixed
Original file line number Diff line number Diff line change @@ -607,6 +607,16 @@ def __get_framebuffer_size(self) -> tuple[int, int]:
607
607
max_rb_size = self ._context .info ["GL_MAX_RENDERBUFFER_SIZE" ]
608
608
geometry = self ._system_av_info .geometry
609
609
610
+ if (
611
+ geometry .max_width > max_rb_size
612
+ or geometry .max_height > max_fbo_size
613
+ or geometry .max_height > max_rb_size
614
+ or geometry .max_width > max_fbo_size
615
+ ):
616
+ warnings .warn (
617
+ f"Core-provided framebuffer size ({ geometry .max_width } x{ geometry .max_height } ) exceeds GL_MAX_TEXTURE_SIZE ({ max_fbo_size } ) or GL_MAX_RENDERBUFFER_SIZE ({ max_rb_size } )"
618
+ )
619
+
610
620
width = min (geometry .max_width , max_fbo_size , max_rb_size )
611
621
height = min (geometry .max_height , max_fbo_size , max_rb_size )
612
622
return width , height
You can’t perform that action at this time.
0 commit comments