Added currently set render target information to Renderer11.

TRAC #22145 Signed-off-by: Nicolas Capens Signed-off-by: Daniel Koch git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1513 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 536dd6e9
......@@ -491,6 +491,9 @@ void Renderer11::clear(const gl::ClearParameters &clearParams, gl::Framebuffer *
void Renderer11::markAllStateDirty()
{
mDepthStencilInitialized = false;
mRenderTargetDescInitialized = false;
mForceSetBlendState = true;
mForceSetRasterState = true;
mForceSetDepthStencilState = true;
......
......@@ -152,6 +152,12 @@ class Renderer11 : public Renderer
RenderStateCache mStateCache;
// current render target states
bool mDepthStencilInitialized;
bool mRenderTargetDescInitialized;
rx::RenderTarget::Desc mRenderTargetDesc;
unsigned int mCurDepthSize;
// Currently applied blend state
bool mForceSetBlendState;
gl::BlendState mCurBlendState;
......@@ -161,7 +167,6 @@ class Renderer11 : public Renderer
// Currently applied rasterizer state
bool mForceSetRasterState;
gl::RasterizerState mCurRasterState;
unsigned int mCurDepthSize;
// Currently applied depth stencil state
bool mForceSetDepthStencilState;
......
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