Loading opengl/libs/Android.mk +4 −0 Original line number Original line Diff line number Diff line Loading @@ -126,6 +126,10 @@ LOCAL_SRC_FILES:= \ GLES2/gl2.cpp.arm \ GLES2/gl2.cpp.arm \ # # ifneq (,$(filter manta, $(TARGET_DEVICE))) LOCAL_CFLAGS += -DIS_MANTA endif LOCAL_SHARED_LIBRARIES += libcutils libutils libEGL LOCAL_SHARED_LIBRARIES += libcutils libutils libEGL LOCAL_LDLIBS := -lpthread -ldl LOCAL_LDLIBS := -lpthread -ldl LOCAL_MODULE:= libGLESv2 LOCAL_MODULE:= libGLESv2 Loading opengl/libs/GLES2/gl2.cpp +9 −1 Original line number Original line Diff line number Diff line Loading @@ -44,10 +44,18 @@ using namespace android; #undef CALL_GL_API #undef CALL_GL_API #undef CALL_GL_API_RETURN #undef CALL_GL_API_RETURN #ifdef IS_MANTA #define DEBUG_CALL_GL_API 1 #else #define DEBUG_CALL_GL_API 0 #define DEBUG_CALL_GL_API 0 #endif #define DEBUG_PRINT_CALL_STACK_ON_ERROR 0 #define DEBUG_PRINT_CALL_STACK_ON_ERROR 0 #define SYSTRACE_CALL_GL_API 0 #define SYSTRACE_CALL_GL_API 0 #ifdef IS_MANTA #undef USE_FAST_TLS_KEY #endif #if USE_FAST_TLS_KEY #if USE_FAST_TLS_KEY #ifdef HAVE_ARM_TLS_REGISTER #ifdef HAVE_ARM_TLS_REGISTER Loading Loading @@ -91,7 +99,7 @@ using namespace android; GLenum status = GL_NO_ERROR; \ GLenum status = GL_NO_ERROR; \ bool error = false; \ bool error = false; \ while ((status = glGetError()) != GL_NO_ERROR) { \ while ((status = glGetError()) != GL_NO_ERROR) { \ ALOGD("[" #_api "] 0x%x", status); \ ALOGD("GL Error: [" #_api "] 0x%x", status); \ error = true; \ error = true; \ } \ } \ if (DEBUG_PRINT_CALL_STACK_ON_ERROR && error) { \ if (DEBUG_PRINT_CALL_STACK_ON_ERROR && error) { \ Loading Loading
opengl/libs/Android.mk +4 −0 Original line number Original line Diff line number Diff line Loading @@ -126,6 +126,10 @@ LOCAL_SRC_FILES:= \ GLES2/gl2.cpp.arm \ GLES2/gl2.cpp.arm \ # # ifneq (,$(filter manta, $(TARGET_DEVICE))) LOCAL_CFLAGS += -DIS_MANTA endif LOCAL_SHARED_LIBRARIES += libcutils libutils libEGL LOCAL_SHARED_LIBRARIES += libcutils libutils libEGL LOCAL_LDLIBS := -lpthread -ldl LOCAL_LDLIBS := -lpthread -ldl LOCAL_MODULE:= libGLESv2 LOCAL_MODULE:= libGLESv2 Loading
opengl/libs/GLES2/gl2.cpp +9 −1 Original line number Original line Diff line number Diff line Loading @@ -44,10 +44,18 @@ using namespace android; #undef CALL_GL_API #undef CALL_GL_API #undef CALL_GL_API_RETURN #undef CALL_GL_API_RETURN #ifdef IS_MANTA #define DEBUG_CALL_GL_API 1 #else #define DEBUG_CALL_GL_API 0 #define DEBUG_CALL_GL_API 0 #endif #define DEBUG_PRINT_CALL_STACK_ON_ERROR 0 #define DEBUG_PRINT_CALL_STACK_ON_ERROR 0 #define SYSTRACE_CALL_GL_API 0 #define SYSTRACE_CALL_GL_API 0 #ifdef IS_MANTA #undef USE_FAST_TLS_KEY #endif #if USE_FAST_TLS_KEY #if USE_FAST_TLS_KEY #ifdef HAVE_ARM_TLS_REGISTER #ifdef HAVE_ARM_TLS_REGISTER Loading Loading @@ -91,7 +99,7 @@ using namespace android; GLenum status = GL_NO_ERROR; \ GLenum status = GL_NO_ERROR; \ bool error = false; \ bool error = false; \ while ((status = glGetError()) != GL_NO_ERROR) { \ while ((status = glGetError()) != GL_NO_ERROR) { \ ALOGD("[" #_api "] 0x%x", status); \ ALOGD("GL Error: [" #_api "] 0x%x", status); \ error = true; \ error = true; \ } \ } \ if (DEBUG_PRINT_CALL_STACK_ON_ERROR && error) { \ if (DEBUG_PRINT_CALL_STACK_ON_ERROR && error) { \ Loading