mirror of
https://github.com/YACReader/yacreader
synced 2026-02-17 12:33:02 -05:00
Check gl context before deleting defaultTexture in flow_gl.
This commit is contained in:
@ -1351,10 +1351,10 @@ YACReaderPageFlowGL::~YACReaderPageFlowGL()
|
|||||||
delete(images[i].texture);
|
delete(images[i].texture);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (defaultTexture != nullptr) {
|
if (defaultTexture != nullptr) {
|
||||||
delete defaultTexture;
|
delete defaultTexture;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user