Browse Source

Fix for :
error: array index 1 is past the end of the array (which contains 1 element) [-Werror,-Warray-bounds]
m_samplerFlags[stage][1] = UINT32_MAX;

Miodrag Milanovic 10 years ago
parent
commit
9b71495507
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/renderer_d3d9.cpp

+ 1 - 1
src/renderer_d3d9.cpp

@@ -1732,7 +1732,7 @@ namespace bgfx { namespace d3d9
 		UniformRegistry m_uniformReg;
 		void* m_uniforms[BGFX_CONFIG_MAX_UNIFORMS];
 
-		uint32_t m_samplerFlags[BGFX_CONFIG_MAX_TEXTURE_SAMPLERS][1];
+		uint32_t m_samplerFlags[BGFX_CONFIG_MAX_TEXTURE_SAMPLERS][2];
 
 		TextureD3D9* m_updateTexture;
 		uint8_t* m_updateTextureBits;