From 611b5996825a9c65507d01d3c24442a67b633e4a Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Tue, 23 Aug 2011 22:42:46 +0000 Subject: [PATCH] debug: more iOS compilation fixes; GL_VERTEX_ARRAY isn't available. --- src/debug/quad.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/debug/quad.cpp b/src/debug/quad.cpp index 438f9855..2bbf0ba9 100644 --- a/src/debug/quad.cpp +++ b/src/debug/quad.cpp @@ -25,6 +25,18 @@ using namespace std; namespace lol { +/* + * OpenGL Feature list: + * + * Android and iOS don't have GL_VERTEX_ARRAY. + * + * iOS does vertex buffers using glVertexAttribPointer(), and does not + * support glVertexPointer(). + * + * PSGL (on the PS3) does vertex buffers using glVertexPointer(), and + * does not support glVertexAttribPointer(). + */ + /* * DebugQuad implementation class */ @@ -543,7 +555,7 @@ void DebugQuad::TickDraw(float deltams) * * Renders an orange square. */ -#if !defined ANDROID_NDK +#if !defined ANDROID_NDK && !defined __APPLE__ if (!shader[0]) { #if !defined __CELLOS_LV2__ @@ -596,7 +608,7 @@ void DebugQuad::TickDraw(float deltams) * * Renders a static, coloured and tiled pattern. */ -#if !defined ANDROID_NDK +#if !defined ANDROID_NDK && !defined __APPLE__ if (!shader[0]) #if !defined __CELLOS_LV2__ shader[0] = Shader::Create(