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

Commit f6d4ddf3 authored by Caio Schnepper's avatar Caio Schnepper Committed by Steve Kondik
Browse files

libgui: Don't assign handle to NULL after free is common

Reportedly Mali and PowerVR GPUs are crashing when setting handle to NULL
So we will set a flag for the devices that might need this aswell

Set BOARD_EGL_NEEDS_HANDLE_VALUE=true in BoardConfig.mk to use

Change-Id: I6c967f62dc6adced7583d7b2045d11cf5b25fc80
parent 624ca1db
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -58,6 +58,10 @@ ifneq ($(BOARD_FRAMEBUFFER_FORCE_FORMAT),)
LOCAL_CFLAGS += -DFRAMEBUFFER_FORCE_FORMAT=$(BOARD_FRAMEBUFFER_FORCE_FORMAT)
endif

ifeq ($(BOARD_EGL_NEEDS_HANDLE_VALUE),true)
LOCAL_CFLAGS += -DEGL_NEEDS_HANDLE
endif

LOCAL_MODULE := libui

include $(BUILD_SHARED_LIBRARY)
+1 −1
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ void GraphicBuffer::free_handle()
        allocator.free(handle);
    }

#ifndef EXYNOS4_ENHANCEMENTS
#ifndef EGL_NEEDS_HANDLE
    handle = NULL;
#endif