mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 16:58:38 +09:00
[gfx] Check if we have a valid texture before trying to delete it.
This commit is contained in:
parent
0359d8a9e7
commit
56c53b3b8f
1 changed files with 2 additions and 1 deletions
|
|
@ -94,7 +94,8 @@ SharedSurface_Basic::~SharedSurface_Basic()
|
|||
mGL->fDeleteFramebuffers(1, &mFB);
|
||||
|
||||
if (mOwnsTex)
|
||||
mGL->fDeleteTextures(1, &mTex);
|
||||
if (mTex)
|
||||
mGL->fDeleteTextures(1, &mTex);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue