зеркало из https://github.com/AvaloniaUI/angle.git
Reset mSceneStarted on Reset
TRAC #12139 Signed-off-by: Shannon Woods Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@233 736b8ea6-26fd-11df-bfd4-992fa37f6226
This commit is contained in:
Родитель
8ede24f7b8
Коммит
c9def0b65d
|
@ -26,8 +26,6 @@ Display::Display(HDC deviceContext) : mDc(deviceContext)
|
|||
|
||||
mAdapter = D3DADAPTER_DEFAULT;
|
||||
mDeviceType = D3DDEVTYPE_HAL;
|
||||
|
||||
mSceneStarted = false;
|
||||
}
|
||||
|
||||
Display::~Display()
|
||||
|
@ -283,6 +281,7 @@ egl::Surface *Display::createWindowSurface(HWND window, EGLConfig config)
|
|||
|
||||
if (mDevice)
|
||||
{
|
||||
mSceneStarted = false;
|
||||
mDevice->GetSwapChain(0, &swapChain);
|
||||
mDevice->GetDepthStencilSurface(&depthStencilSurface);
|
||||
}
|
||||
|
@ -327,7 +326,7 @@ egl::Surface *Display::createWindowSurface(HWND window, EGLConfig config)
|
|||
|
||||
if (result == D3DERR_OUTOFVIDEOMEMORY || result == E_OUTOFMEMORY)
|
||||
{
|
||||
ERR("Could not resent presentation parameters for device. Out of memory.");
|
||||
ERR("Could not reset presentation parameters for device. Out of memory.");
|
||||
return error(EGL_BAD_ALLOC, (egl::Surface*)NULL);
|
||||
}
|
||||
|
||||
|
@ -335,6 +334,7 @@ egl::Surface *Display::createWindowSurface(HWND window, EGLConfig config)
|
|||
|
||||
if (mDevice)
|
||||
{
|
||||
mSceneStarted = false;
|
||||
mDevice->GetSwapChain(0, &swapChain);
|
||||
mDevice->GetDepthStencilSurface(&depthStencilSurface);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче