diff --git a/init/init_msm8960.cpp b/init/init_msm8960.cpp index 2cf3f4b5..f67054d5 100644 --- a/init/init_msm8960.cpp +++ b/init/init_msm8960.cpp @@ -36,10 +36,14 @@ #include "init_msm.h" +#define A2xx_OPEN_GLES_VERSION "131072" + void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *board_type) { char platform[PROP_VALUE_MAX]; int rc; + prop_info *pi; + size_t valuelen; rc = property_get("ro.board.platform", platform); if (!rc || !ISMATCH(platform, ANDROID_TARGET)) @@ -59,12 +63,20 @@ void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *boar else property_set(PROP_LCDDENSITY, "240"); } - /* Populate system properties */ switch (msm_id) { case 87: /* 8960 */ property_set("debug.composition.type", "dyn"); + + /* Overwrite ro.opengles.version value to 131072 */ + /* 131072 is decimal of 0x20000 */ + /* 8960 can only support GLES VERSION 2.0 */ + valuelen = strlen(A2xx_OPEN_GLES_VERSION); + pi = (prop_info*) __system_property_find("ro.opengles.version"); + if(pi != 0) { + __system_property_update(pi, A2xx_OPEN_GLES_VERSION, valuelen); + } break; case 138: case 153: