I'm working on a game which runs quite well on a lot of Android devices (Lexus 7, SG ACe, HTC Desire ...). But especially for SGS1, I can't get better than a black screen. After investigating a lot into the whole code, I think that the problem is located in my shader code. Compilation is ok, link too, but I hear about some incompatibility between different GPU (here http://www.jpct.net/forum2/index.php/topic,2833.15.html for example)
Here's the shader code :
[VERTEX]
uniform mat4 uMVPMatrix; // Ortho matrix
attribute vec2 vPosition; // Vertex position
void main(){
gl_Position = uMVPMatrix * vec4(vPosition, 0.0, 1.0);
}
[FRAGMENT]
precision mediump float;
uniform lowp vec4 CurColor;
void main(){
gl_FragColor = CurColor;
}
Maybe something is obviously wrong in this, even if it is very basic ? Thank you in advance.