I\'m currently learning OpenGL ES programming on Android (2.1). I started with the obligatory rotating cube. It\'s rotating fine but I can\'t get the depth buffer to work. T
Found it myself. It wasn't GL code, it was android code:
view.setEGLConfigChooser(false);
The "false" in this line explicitly says that no Z-Buffer should be allocated. After switching it to "true" it worked perfectly.