Hi everyone..

Specifically, it is about Open GL ES on Android.
But it should be not much different
Thereotically, is it legal to mix gl10 and gl11?

This is what I am doing and I still able to compile and run with no error.


Code :
.
.
import javax.microedition.khronos.opengles.GL10
import javax.microedition.khronos.opengles.GL11
 
public class MyClass implements Renderer{
.
.
.
public void onSurfaceCreated(GL10 gl, EGLConfig config){
             gl.glLightfv(GL11.GL_LIGHT0, GL11.GL_POSITION, myBuffer);
.
.
.
}
}


So, is it legal? will it affect the performance?


Thanks!