Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9dd8201 authored by Romain Guy's avatar Romain Guy
Browse files

Prevent random crashes on SGX architecture

Bug #6219894

Change-Id: If77f29da03e557a50e53bae505e1c638a1dbe2cc
parent d4577c0c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -518,6 +518,8 @@ FontRenderer::~FontRenderer() {
    mCacheLines.clear();

    if (mInitialized) {
        // Unbinding the buffer shouldn't be necessary but it crashes with some drivers
        Caches::getInstance().unbindIndicesBuffer();
        glDeleteBuffers(1, &mIndexBufferID);

        delete[] mTextMeshPtr;