I have a working Opengl ES 1.0 Android program that includes blend function code that looks like this:
public void draw(GL10 gl) {
gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
gl.glEnable(GL10.GL_TEXTURE_2D);
gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
gl.glEnable(GL10.GL_BLEND);
gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);
...
However, this blend function does not quite meet my needs and I would like to replace the first parameter of glBlendFunc, the GL_SRC_ALPHA, with GL_SRC_COLOR. Unfortunately, this results in a GLException of "invalid enum." This would normally indicate that the parameter I am giving it is not a valid parameter for that object, but according to the OpenGL ES docs, this parameter is one of the accepted values for this function. Any idea why it might be generating this error?