Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 67245e1

Browse files
committed
[[ TileCache ]] Disable HardwareBuffer on 32bit armv7 arch
This patch allows armv7 builds to complete successfully until the NDK can be updated to one that includes the required headers (android/hardware_buffer.h).
1 parent 13a5632 commit 67245e1

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

engine/src/glhardwarebuffer-android.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ for more details.
1414
You should have received a copy of the GNU General Public License
1515
along with LiveCode. If not see <http://www.gnu.org/licenses/>. */
1616

17+
/* TODO - Don't attempt to build on 32bit armv7 - needs ndk update */
18+
#if !defined(__arm__)
19+
#define MCANDROIDUSEHARDWAREBUFFER
20+
#endif
21+
22+
#if defined(MCANDROIDUSEHARDWAREBUFFER)
23+
1724
#define GL_GLEXT_PROTOTYPES
1825
#define EGL_EGLEXT_PROTOTYPES
1926
#include <GLES3/gl3.h>
@@ -272,3 +279,5 @@ void MCGLHardwareBufferUnlock(MCGLHardwareBufferRef p_buffer)
272279
MCLog("error unlocking hardwarebuffer: %d", t_error);
273280
p_buffer->lock = nil;
274281
}
282+
283+
#endif // defined(MCANDROIDUSEHARDWAREBUFFER)

engine/src/tilecachegl3.x.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ along with LiveCode. If not see <http://www.gnu.org/licenses/>. */
3737

3838
#elif defined(TARGET_SUBPLATFORM_ANDROID)
3939

40+
/* TODO - Don't attempt to build on 32bit armv7 - needs ndk update */
41+
#if !defined(__arm__)
4042
#define MCANDROIDUSEHARDWAREBUFFER
43+
#endif
4144

4245
#define GL_GLEXT_PROTOTYPES
4346
#define EGL_EGLEXT_PROTOTYPES

0 commit comments

Comments
 (0)