]> OCCT Git - occt.git/commit
0032461: Visualization - expensive call of glGetTexEnviv/glTexEnvi in each render...
authorsshutina <sshutina@opencascade.com>
Wed, 15 Sep 2021 10:48:51 +0000 (13:48 +0300)
committersmoskvin <smoskvin@opencascade.com>
Wed, 15 Sep 2021 17:12:43 +0000 (20:12 +0300)
commit58f2990bc5423f527655e136948cbd4eb859e954
tree08555e807628d17e66b9947786d84c253bfb91b5
parent7c6fecf9a8009d9da9d2ec5f545ace1f9b38fac7
0032461: Visualization - expensive call of glGetTexEnviv/glTexEnvi in each render of OpenGl_Text

 - removed the call of glGetTexEnviv, glTexEnvi
 - replaced on the OpenGl_Sampler::applyGlobalTextureParams/resetGlobalTextureParams
 - added the method in OpenGl_Font returning first texture
src/OpenGl/OpenGl_Font.hxx
src/OpenGl/OpenGl_Sampler.hxx
src/OpenGl/OpenGl_Text.cxx