Skip to content

Commit db2a7d2

Browse files
authored
Add assert for Texture::Disown to guard against incorrect usage. (#1178)
1 parent 3645a28 commit db2a7d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Core/Graphics/Source/Texture.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ namespace Babylon::Graphics
7979

8080
void Texture::Disown()
8181
{
82+
assert(m_ownsHandle);
8283
m_ownsHandle = false;
8384
}
8485

0 commit comments

Comments
 (0)