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
parent 8ede24f7
...@@ -26,8 +26,6 @@ Display::Display(HDC deviceContext) : mDc(deviceContext) ...@@ -26,8 +26,6 @@ Display::Display(HDC deviceContext) : mDc(deviceContext)
mAdapter = D3DADAPTER_DEFAULT; mAdapter = D3DADAPTER_DEFAULT;
mDeviceType = D3DDEVTYPE_HAL; mDeviceType = D3DDEVTYPE_HAL;
mSceneStarted = false;
} }
Display::~Display() Display::~Display()
...@@ -283,6 +281,7 @@ egl::Surface *Display::createWindowSurface(HWND window, EGLConfig config) ...@@ -283,6 +281,7 @@ egl::Surface *Display::createWindowSurface(HWND window, EGLConfig config)
if (mDevice) if (mDevice)
{ {
mSceneStarted = false;
mDevice->GetSwapChain(0, &swapChain); mDevice->GetSwapChain(0, &swapChain);
mDevice->GetDepthStencilSurface(&depthStencilSurface); mDevice->GetDepthStencilSurface(&depthStencilSurface);
} }
...@@ -327,7 +326,7 @@ egl::Surface *Display::createWindowSurface(HWND window, EGLConfig config) ...@@ -327,7 +326,7 @@ egl::Surface *Display::createWindowSurface(HWND window, EGLConfig config)
if (result == D3DERR_OUTOFVIDEOMEMORY || result == E_OUTOFMEMORY) 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); return error(EGL_BAD_ALLOC, (egl::Surface*)NULL);
} }
...@@ -335,6 +334,7 @@ egl::Surface *Display::createWindowSurface(HWND window, EGLConfig config) ...@@ -335,6 +334,7 @@ egl::Surface *Display::createWindowSurface(HWND window, EGLConfig config)
if (mDevice) if (mDevice)
{ {
mSceneStarted = false;
mDevice->GetSwapChain(0, &swapChain); mDevice->GetSwapChain(0, &swapChain);
mDevice->GetDepthStencilSurface(&depthStencilSurface); mDevice->GetDepthStencilSurface(&depthStencilSurface);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment