From baa078471f4198bd73819794f2713a845305a227 Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Sun, 19 Dec 2010 16:38:09 -0500 Subject: [PATCH] surfaceflinger: Add BOARD_NO_RGBX_8888 option Current GL libraries shipped with Froyo do not correctly support this. Google added this option specifically for Droid, but it is applicable to other devices with older userspace. Change-Id: Ied682a17b2820b58a2a240f975390ddcc11b7815 --- services/surfaceflinger/Android.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/surfaceflinger/Android.mk b/services/surfaceflinger/Android.mk index e2f8a7468d877..87ffc41f2a875 100644 --- a/services/surfaceflinger/Android.mk +++ b/services/surfaceflinger/Android.mk @@ -23,6 +23,9 @@ LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES ifeq ($(TARGET_BOARD_PLATFORM), omap3) LOCAL_CFLAGS += -DNO_RGBX_8888 endif +ifeq ($(BOARD_NO_RGBX_8888), true) + LOCAL_CFLAGS += -DNO_RGBX_8888 +endif ifeq ($(TARGET_BOARD_PLATFORM), s5pc110) LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY endif