mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 14:54:25 +00:00
[gfx] Check if we have a valid texture before trying to delete it.
This commit is contained in:
@@ -94,7 +94,8 @@ SharedSurface_Basic::~SharedSurface_Basic()
|
||||
mGL->fDeleteFramebuffers(1, &mFB);
|
||||
|
||||
if (mOwnsTex)
|
||||
mGL->fDeleteTextures(1, &mTex);
|
||||
if (mTex)
|
||||
mGL->fDeleteTextures(1, &mTex);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user