Explorar el Código

debug: more iOS compilation fixes; GL_VERTEX_ARRAY isn't available.

legacy
Sam Hocevar sam hace 13 años
padre
commit
611b599682
Se han modificado 1 ficheros con 14 adiciones y 2 borrados
  1. +14
    -2
      src/debug/quad.cpp

+ 14
- 2
src/debug/quad.cpp Ver fichero

@@ -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(


Cargando…
Cancelar
Guardar