This is needed to support the rare, but still legal scenario, when glDrawElemets is used with some index array data is stored in VBO's while the actual attributes (vertices) data is in immediate mode. When in immediate mode, we need to process the incodes, in order to know which vertex data to send, which was impossible without the caching. This commit introduces a new class GLSharedGroup, which will hold all data that can be shared by shared contexts (buffers are such data). This also makes the "Jet Cars Stunts" app work properly. Change-Id: Ic937080dae461bc8cdf4d10cf37066a6e847f464
35 lines
984 B
Makefile
35 lines
984 B
Makefile
# This build script corresponds to a library containing many definitions
|
|
# common to both the guest and the host. They relate to
|
|
#
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
### CodecCommon guest ##############################################
|
|
$(call emugl-begin-static-library,libOpenglCodecCommon)
|
|
|
|
LOCAL_SRC_FILES := \
|
|
GLClientState.cpp \
|
|
GLSharedGroup.cpp \
|
|
glUtils.cpp \
|
|
TcpStream.cpp \
|
|
TimeUtils.cpp
|
|
|
|
LOCAL_CFLAGS += -DLOG_TAG=\"eglCodecCommon\"
|
|
|
|
$(call emugl-export,SHARED_LIBRARIES,libcutils libutils)
|
|
$(call emugl-export,C_INCLUDES,$(LOCAL_PATH))
|
|
$(call emugl-end-module)
|
|
|
|
### OpenglCodecCommon host ##############################################
|
|
$(call emugl-begin-host-static-library,libOpenglCodecCommon)
|
|
|
|
LOCAL_SRC_FILES := \
|
|
GLClientState.cpp \
|
|
glUtils.cpp \
|
|
TcpStream.cpp \
|
|
TimeUtils.cpp
|
|
|
|
$(call emugl-export,STATIC_LIBRARIES,libcutils)
|
|
$(call emugl-export,C_INCLUDES,$(LOCAL_PATH))
|
|
$(call emugl-end-module)
|
|
|