Moved the static initializers of RenderStateCache's constants to the top of the cpp file.

TRAC #22129

Signed-off-by: Daniel Koch

git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1441 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/renderer/RenderStateCache.cpp b/src/libGLESv2/renderer/RenderStateCache.cpp
index d0f592e..0153053 100644
--- a/src/libGLESv2/renderer/RenderStateCache.cpp
+++ b/src/libGLESv2/renderer/RenderStateCache.cpp
@@ -16,6 +16,13 @@
 namespace rx
 {
 
+// MSDN's documentation of ID3D11Device::CreateBlendState, ID3D11Device::CreateRasterizerState
+// and ID3D11Device::CreateDepthStencilState claims the maximum number of unique states of each
+// type an application can create is 4096
+const unsigned int RenderStateCache::kMaxBlendStates = 4096;
+const unsigned int RenderStateCache::kMaxRasterizerStates = 4096;
+const unsigned int RenderStateCache::kMaxDepthStencilStates = 4096;
+
 RenderStateCache::RenderStateCache() : mDevice(NULL), mCounter(0),
                                        mBlendStateCache(kMaxBlendStates, hashBlendState, compareBlendStates),
                                        mRasterizerStateCache(kMaxRasterizerStates, hashRasterizerState, compareRasterizerStates),
@@ -69,10 +76,6 @@
     return memcmp(&a, &b, sizeof(gl::BlendState)) == 0;
 }
 
-// MSDN's documentation of ID3D11Device::CreateBlendState claims the maximum number of
-// unique blend states an application can create is 4096
-const unsigned int RenderStateCache::kMaxBlendStates = 4096;
-
 ID3D11BlendState *RenderStateCache::getBlendState(const gl::BlendState &blendState)
 {
     if (!mDevice)
@@ -164,10 +167,6 @@
     return memcmp(&a, &b, sizeof(RasterizerStateKey)) == 0;
 }
 
-// MSDN's documentation of ID3D11Device::CreateRasterizerState  claims the maximum number of
-// unique rasterizer states an application can create is 4096
-const unsigned int RenderStateCache::kMaxRasterizerStates = 4096;
-
 ID3D11RasterizerState *RenderStateCache::getRasterizerState(const gl::RasterizerState &rasterState,
                                                             unsigned int depthSize)
 {
@@ -249,10 +248,6 @@
     return memcmp(&a, &b, sizeof(gl::DepthStencilState)) == 0;
 }
 
-// MSDN's documentation of ID3D11Device::CreateDepthStencilState  claims the maximum number of
-// unique depth stencil states an application can create is 4096
-const unsigned int RenderStateCache::kMaxDepthStencilStates = 4096;
-
 ID3D11DepthStencilState* RenderStateCache::getDepthStencilState(const gl::DepthStencilState &dsState)
 {
     if (!mDevice)