Commit cf66ebb8 by vangelis@chromium.org

Renaming Context::mDepthStencilDirty flag to mDepthStencilInitialized to avoid breaking consistency

http://codereview.appspot.com/2187041/ (Having trouble checking it in with gcl so going straight to subversion) git-svn-id: https://angleproject.googlecode.com/svn/trunk@420 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 85dc42bf
......@@ -315,7 +315,7 @@ void Context::markAllStateDirty()
mAppliedRenderTargetSerial = 0;
mAppliedDepthbufferSerial = 0;
mAppliedStencilbufferSerial = 0;
mDepthStencilDirty = true;
mDepthStencilInitialized = false;
mAppliedProgram = 0;
mClearStateDirty = true;
......@@ -1608,12 +1608,12 @@ bool Context::applyRenderTarget(bool ignoreViewport)
if (depthbufferSerial != mAppliedDepthbufferSerial ||
stencilbufferSerial != mAppliedStencilbufferSerial ||
mDepthStencilDirty)
!mDepthStencilInitialized)
{
device->SetDepthStencilSurface(depthStencil);
mAppliedDepthbufferSerial = depthbufferSerial;
mAppliedStencilbufferSerial = stencilbufferSerial;
mDepthStencilDirty = false;
mDepthStencilInitialized = true;
}
D3DVIEWPORT9 viewport;
......
......@@ -454,7 +454,7 @@ class Context
unsigned int mAppliedRenderTargetSerial;
unsigned int mAppliedDepthbufferSerial;
unsigned int mAppliedStencilbufferSerial;
bool mDepthStencilDirty;
bool mDepthStencilInitialized;
bool mSupportsShaderModel3;
std::map<D3DFORMAT, bool *> mMultiSampleSupport;
......
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