From 2f02cd097ae3771bb84094e06f6a25803adf9ac2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 8 Oct 2015 17:34:03 -0700 Subject: [PATCH] iOS: Remove texture test. Issue #483. --- src/renderer_gl.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index 011e67a95..557614ef9 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -1039,7 +1039,7 @@ namespace bgfx { namespace gl ; GLsizei size = (16*16*getBitsPerPixel(_format) )/8; - void* data = alloca(size); + void* data = bx::alignPtr(alloca(size+16), 0, 16); if (isCompressed(_format) ) { @@ -1554,7 +1554,10 @@ namespace bgfx { namespace gl s_textureFormat[TextureFormat::R8].m_fmt = GL_LUMINANCE; } - for (uint32_t ii = 0; ii < TextureFormat::Count; ++ii) + for (uint32_t ii = BX_ENABLED(BX_PLATFORM_IOS) ? TextureFormat::Unknown : 0 // skip test on iOS! + ; ii < TextureFormat::Count + ; ++ii + ) { if (TextureFormat::Unknown != ii && TextureFormat::UnknownDepth != ii)