mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-24 15:53:45 +02:00
Set OpenGL viewport every frame in libretro builds
This commit is contained in:
parent
63a2430599
commit
c01917cac8
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue