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

Commit 9e911efc authored by Mathias Agopian's avatar Mathias Agopian
Browse files

fix [2262591] Junk on screen in ERD46

since we're using the GPU for composition, don't use a texture for dimming,
instead simply use an alpha-blended quad.

also workaround what looks like a GL driver bug by calling glFinish() before
glReadPixels().
parent 13f82e09
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -22,9 +22,6 @@ LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
ifeq ($(TARGET_BOARD_PLATFORM), msm7k)
	LOCAL_CFLAGS += -DDIM_WITH_TEXTURE
endif
ifeq ($(TARGET_BOARD_PLATFORM), qsd8k)
	LOCAL_CFLAGS += -DDIM_WITH_TEXTURE
endif

# need "-lrt" on Linux simulator to pick up clock_gettime
ifeq ($(TARGET_SIMULATOR),true)
+1 −0
Original line number Diff line number Diff line
@@ -169,6 +169,7 @@ void LayerBlur::onDraw(const Region& clip) const
            // This reads the frame-buffer, so a h/w GL would have to
            // finish() its rendering first. we don't want to do that
            // too often. Read data is 4-bytes aligned.
            glFinish();
            glReadPixels(X, Y, w, h, mReadFormat, mReadType, pixels);

            // blur that texture.