parent
4c59aab179
commit
dc28284cce
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue