Reset mSceneStarted on Reset
TRAC #12139
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: http://angleproject.googlecode.com/svn/trunk@233 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libEGL/Display.cpp b/src/libEGL/Display.cpp
index 4d69167..6276452 100644
--- a/src/libEGL/Display.cpp
+++ b/src/libEGL/Display.cpp
@@ -26,8 +26,6 @@
mAdapter = D3DADAPTER_DEFAULT;
mDeviceType = D3DDEVTYPE_HAL;
-
- mSceneStarted = false;
}
Display::~Display()
@@ -283,6 +281,7 @@
if (mDevice)
{
+ mSceneStarted = false;
mDevice->GetSwapChain(0, &swapChain);
mDevice->GetDepthStencilSurface(&depthStencilSurface);
}
@@ -327,7 +326,7 @@
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 @@
if (mDevice)
{
+ mSceneStarted = false;
mDevice->GetSwapChain(0, &swapChain);
mDevice->GetDepthStencilSurface(&depthStencilSurface);
}