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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user