mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-03-06 13:17:39 +00:00
No need to call video_cb if there is no image
This commit is contained in:
parent
8162d0ff66
commit
b009ec8f52
@ -51,9 +51,7 @@ public:
|
|||||||
bool Init(bool cache_context);
|
bool Init(bool cache_context);
|
||||||
void SetRenderTarget() override {}
|
void SetRenderTarget() override {}
|
||||||
void SwapBuffers() override {
|
void SwapBuffers() override {
|
||||||
if (gstate_c.skipDrawReason) {
|
if (!gstate_c.skipDrawReason) {
|
||||||
video_cb(NULL, PSP_CoreParameter().pixelWidth, PSP_CoreParameter().pixelHeight, 0);
|
|
||||||
} else {
|
|
||||||
video_cb(RETRO_HW_FRAME_BUFFER_VALID, PSP_CoreParameter().pixelWidth, PSP_CoreParameter().pixelHeight, 0);
|
video_cb(RETRO_HW_FRAME_BUFFER_VALID, PSP_CoreParameter().pixelWidth, PSP_CoreParameter().pixelHeight, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user