Set OpenGL viewport every frame in libretro builds

This commit is contained in:
刘皓 2025-02-26 12:48:01 -05:00
parent 63a2430599
commit c01917cac8
No known key found for this signature in database
GPG key ID: 7901753DB465B711

View file

@ -518,7 +518,12 @@ public:
pp.startRender();
#ifdef MKXPZ_RETRO
// The libretro API requires the viewport to be set every frame
glState.viewport.init(IntRect(0, 0, w, h));
#else
glState.viewport.set(IntRect(0, 0, w, h));
#endif // MKXPZ_RETRO
FBO::clear();