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

Commit 1bfe6939 authored by XpLoDWilD's avatar XpLoDWilD Committed by Daniel Hillenbrand
Browse files

hwui: Disable framebuffer discarding for exynos4 devices

Change-Id: I27671f1dfc32f19dc792b9b13c328247e2b7b5fc
parent f4506c00
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -39,6 +39,10 @@ ifeq ($(USE_OPENGL_RENDERER),true)
		external/skia/src/ports \
		external/skia/include/utils

ifeq ($(TARGET_BOARD_PLATFORM),exynos4)
	LOCAL_CFLAGS += -DDONT_DISCARD_FRAMEBUFFER
endif

	LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DGL_GLEXT_PROTOTYPES
	LOCAL_CFLAGS += -fvisibility=hidden
	LOCAL_MODULE_CLASS := SHARED_LIBRARIES
+1 −1
Original line number Diff line number Diff line
@@ -335,7 +335,7 @@ void LayerRenderer::destroyLayerDeferred(Layer* layer) {
}

void LayerRenderer::flushLayer(Layer* layer) {
#ifdef GL_EXT_discard_framebuffer
#if defined(GL_EXT_discard_framebuffer) && !defined(DONT_DISCARD_FRAMEBUFFER)
    GLuint fbo = layer->getFbo();
    if (layer && fbo) {
        // If possible, discard any enqueud operations on deferred