浏览代码

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

legacy
Sam Hocevar sam 13 年前
父节点
当前提交
611b599682
共有 1 个文件被更改,包括 14 次插入2 次删除
  1. +14
    -2
      src/debug/quad.cpp

+ 14
- 2
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(


正在加载...
取消
保存