mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-25 08:13:44 +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();
|
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));
|
glState.viewport.set(IntRect(0, 0, w, h));
|
||||||
|
#endif // MKXPZ_RETRO
|
||||||
|
|
||||||
FBO::clear();
|
FBO::clear();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue