Move dirty DX constant tracking from Context to the Renderers.

TRAC #22308
Signed-off-by: Geoff Lang
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1713 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/renderer/SwapChain11.cpp b/src/libGLESv2/renderer/SwapChain11.cpp
index 536b6ee..dc148ee 100644
--- a/src/libGLESv2/renderer/SwapChain11.cpp
+++ b/src/libGLESv2/renderer/SwapChain11.cpp
@@ -1,5 +1,5 @@
 //
-// Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
+// Copyright (c) 2012-2013 The ANGLE Project Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 //
@@ -472,12 +472,6 @@
     static ID3D11RenderTargetView *const nullRTV = NULL;
     deviceContext->OMSetRenderTargets(1, &nullRTV, NULL);
 
-    // Mark context and renderer dirty flags
-    gl::Context *glContext = static_cast<gl::Context*>(glGetCurrentContext());
-    if (glContext)
-    {
-        glContext->markAllStateDirty();
-    }
     mRenderer->markAllStateDirty();
 
     return EGL_SUCCESS;