diff options
| author | 2010-05-12 12:16:45 -0700 | |
|---|---|---|
| committer | 2010-05-12 12:16:45 -0700 | |
| commit | dff3d166f10538e87360a74cab8444665980fcd6 (patch) | |
| tree | 5dc9f19a28431cfeefe79591c9088a75da280fb7 /opengl/libagl | |
| parent | 2c8e051508daaa605a9fb4a8123b09b9dae50329 (diff) | |
| parent | 1b7e3ef417f236c333c7528e7af5485fc4da664b (diff) | |
am 1b7e3ef4: am 55bef14f: am fb234bbe: merge from open-source master
Diffstat (limited to 'opengl/libagl')
| -rw-r--r-- | opengl/libagl/Android.mk | 4 | ||||
| -rw-r--r-- | opengl/libagl/texture.cpp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/opengl/libagl/Android.mk b/opengl/libagl/Android.mk index 6cb146c06094..8abd6499689b 100644 --- a/opengl/libagl/Android.mk +++ b/opengl/libagl/Android.mk @@ -37,6 +37,10 @@ ifeq ($(TARGET_ARCH),arm) LOCAL_CFLAGS += -fstrict-aliasing endif +ifeq ($(ARCH_ARM_HAVE_TLS_REGISTER),true) + LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER +endif + ifneq ($(TARGET_SIMULATOR),true) # we need to access the private Bionic header <bionic_tls.h> # on ARM platforms, we need to mirror the ARCH_ARM_HAVE_TLS_REGISTER diff --git a/opengl/libagl/texture.cpp b/opengl/libagl/texture.cpp index 9407bd55305e..d67612e681a8 100644 --- a/opengl/libagl/texture.cpp +++ b/opengl/libagl/texture.cpp @@ -1515,7 +1515,7 @@ void glReadPixels( ogles_error(c, GL_INVALID_VALUE); return; } - if (x<0 || x<0) { + if (x<0 || y<0) { ogles_error(c, GL_INVALID_VALUE); return; } |