mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 10:35:44 +00:00
Change GL framebuffer if max geometry is different
This commit is contained in:
parent
d8a3e82f1e
commit
83b040b39f
1 changed files with 1 additions and 1 deletions
|
|
@ -896,7 +896,7 @@ func geometryChange(geom C.struct_retro_game_geometry) {
|
|||
old := Nan0.sys.av.geometry
|
||||
Nan0.sys.av.geometry = geom
|
||||
|
||||
if Nan0.Video.gl.enabled {
|
||||
if Nan0.Video.gl.enabled && (old.max_width != geom.max_width || old.max_height != geom.max_height) {
|
||||
bufS := uint(geom.max_width*geom.max_height) * Nan0.Video.PixFmt.BPP
|
||||
graphics.SetBuffer(int(bufS))
|
||||
Nan0.log.Debug().Msgf("OpenGL frame buffer: %v", byteCountBinary(int64(bufS)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue