1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

0024309: TKOpenGl - Delay release of GLSL resources

This commit is contained in:
kgv
2013-11-01 21:33:17 +04:00
committed by abv
parent 765b3e07de
commit 05dd08ce63
3 changed files with 9 additions and 5 deletions

View File

@@ -493,9 +493,10 @@ protected:
//! Increments counter of users.
//! Used by OpenGl_ShaderManager.
void Share()
//! @return true when resource has been restored from delayed release queue
bool Share()
{
++myShareCount;
return ++myShareCount == 1;
}
//! Decrements counter of users.