Gillou68310
Still Fresh
- Joined
- Sep 13, 2012
- Messages
- 7
You might need to include eglport.
Dude I thought this was already done on the pandora port!! My GLES plugin isn't going to work if there's no EGL Context!
a few less errors
Code:engines/grim/gfx_opengl.cpp: In member function ‘virtual void Grim::GfxOpenGL::drawShadowPlanes()’: engines/grim/gfx_opengl.cpp:650: error: ISO C++ forbids variable length array ‘vertices’ engines/grim/gfx_opengl.cpp: In member function ‘virtual void Grim::GfxOpenGL::drawModelFace(const Grim::MeshFace*, float*, float*, float*)’: engines/grim/gfx_opengl.cpp:756: error: ISO C++ forbids variable length array ‘vert’ engines/grim/gfx_opengl.cpp:757: error: ISO C++ forbids variable length array ‘normal’ engines/grim/gfx_opengl.cpp:758: error: ISO C++ forbids variable length array ‘tex’ engines/grim/gfx_opengl.cpp: At global scope: engines/grim/gfx_opengl.cpp:91: warning: ‘Grim::fragSrc’ defined but not used engines/grim/gfx_opengl.cpp:98: warning: ‘Grim::dimFragSrc’ defined but not used make: *** [engines/grim/gfx_opengl.o] Error 1
Ok this is happening because you're using an older builder version you'll need at least gcc4.6
Anyway here's a quick (and ugly) fix:
Look for the following code in gfx_opengl.cpp
Code:
GLfloat vertices[3*shadowSector->getNumVertices()];
...
...
...
GLfloat vert[3*face->_numVertices];
GLfloat normal[3*face->_numVertices];
GLfloat tex[2*face->_numVertices];
Replace it by:
Code:
GLfloat vertices[1000];
...
...
...
GLfloat vert[1000];
GLfloat normal[1000];
GLfloat tex[1000];