Prechádzať zdrojové kódy

GL: Fixed program sampler count.

Branimir Karadžić 11 rokov pred
rodič
commit
26e96b0489
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/renderer_gl.h

+ 1 - 1
src/renderer_gl.h

@@ -908,7 +908,7 @@ namespace bgfx
 		GLint m_attributes[Attrib::Count]; // sparse
 		GLint m_attributes[Attrib::Count]; // sparse
 		GLint m_instanceData[BGFX_CONFIG_MAX_INSTANCE_DATA_COUNT];
 		GLint m_instanceData[BGFX_CONFIG_MAX_INSTANCE_DATA_COUNT];
 
 
- 		GLint m_sampler[BGFX_CONFIG_MAX_TEXTURES];
+ 		GLint m_sampler[BGFX_CONFIG_MAX_TEXTURE_SAMPLERS];
  		uint8_t m_numSamplers;
  		uint8_t m_numSamplers;
 
 
 		ConstantBuffer* m_constantBuffer;
 		ConstantBuffer* m_constantBuffer;