File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
src/libretro/drivers/video/opengl Expand file tree Collapse file tree 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
1010> breaking changes may be introduced
1111> at any time without warning.
1212
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+
1320## [ 0.1.10] - 2024-06-07
1421
1522### Fixed
Original file line number Diff line number Diff line change @@ -607,6 +607,16 @@ def __get_framebuffer_size(self) -> tuple[int, int]:
607607 max_rb_size = self ._context .info ["GL_MAX_RENDERBUFFER_SIZE" ]
608608 geometry = self ._system_av_info .geometry
609609
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+
610620 width = min (geometry .max_width , max_fbo_size , max_rb_size )
611621 height = min (geometry .max_height , max_fbo_size , max_rb_size )
612622 return width , height
You can’t perform that action at this time.
0 commit comments