suxinde2009 / isgl3d

Automatically exported from code.google.com/p/isgl3d
Other
0 stars 0 forks source link

ShaderMaterialDemo doesn't work #22

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run ShaderMaterialDemo on either iPhone Simulator or iPhone Device
2. Program will crash. glCreateProgram() failed and returned 0.
3.

What is the expected output? What do you see instead?
Program could execute successfully

What version of the product are you using? On what operating system?
isgl3d-1.2.3

Please provide any additional information below.
In Isgl3dAppDelegate, it forced to use OpenGL ES 1.1, which is incompatible 
with the shader pipeline
change the line
    Isgl3dEAGLView * glView = [Isgl3dEAGLView viewWithFrameForES1:[_window bounds]];
to 
    Isgl3dEAGLView * glView = [Isgl3dEAGLView viewWithFrame:[_window bounds]];
fixed the problem.

Original issue reported on code.google.com by weixian...@gmail.com on 16 Nov 2012 at 3:35