GUI: render backend recovery, part 4

confirmed to work
This commit is contained in:
tildearrow 2023-07-02 01:08:57 -05:00
parent 4c59aab179
commit dc28284cce
1 changed files with 6 additions and 6 deletions

View File

@ -349,8 +349,8 @@ void FurnaceGUIRenderDX11::present() {
HRESULT result=swapchain->Present(1,0); HRESULT result=swapchain->Present(1,0);
if (result==DXGI_ERROR_DEVICE_REMOVED || result==DXGI_ERROR_DEVICE_RESET) { if (result==DXGI_ERROR_DEVICE_REMOVED || result==DXGI_ERROR_DEVICE_RESET) {
dead=true; dead=true;
} else { } else if (result!=S_OK) {
logE("DX11: present failed! %.8x",result) logE("DX11: present failed! %.8x",result);
} }
} }
@ -368,10 +368,10 @@ void FurnaceGUIRenderDX11::preInit() {
} }
const float wipeVertices[4][4]={ const float wipeVertices[4][4]={
-1.0, -1.0, 0.0, 1.0, {-1.0, -1.0, 0.0, 1.0},
1.0, -1.0, 0.0, 1.0, { 1.0, -1.0, 0.0, 1.0},
-1.0, 1.0, 0.0, 1.0, {-1.0, 1.0, 0.0, 1.0},
1.0, 1.0, 0.0, 1.0 { 1.0, 1.0, 0.0, 1.0}
}; };
bool FurnaceGUIRenderDX11::init(SDL_Window* win) { bool FurnaceGUIRenderDX11::init(SDL_Window* win) {