GUI: disable late render clear on Metal
fixes a crash
This commit is contained in:
parent
7672a40f19
commit
9edbd57947
2 changed files with 11 additions and 9 deletions
|
|
@ -6455,7 +6455,7 @@ bool FurnaceGUI::loop() {
|
|||
}
|
||||
}
|
||||
|
||||
if (!settings.renderClearPos) {
|
||||
if (!settings.renderClearPos || renderBackend==GUI_BACKEND_METAL) {
|
||||
rend->clear(uiColors[GUI_COLOR_BACKGROUND]);
|
||||
}
|
||||
renderTimeBegin=SDL_GetPerformanceCounter();
|
||||
|
|
@ -6496,7 +6496,7 @@ bool FurnaceGUI::loop() {
|
|||
}
|
||||
}
|
||||
rend->present();
|
||||
if (settings.renderClearPos) {
|
||||
if (settings.renderClearPos && renderBackend!=GUI_BACKEND_METAL) {
|
||||
rend->clear(uiColors[GUI_COLOR_BACKGROUND]);
|
||||
}
|
||||
swapTimeEnd=SDL_GetPerformanceCounter();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue