fixed some z-buffer issues with egl
made 2d-stuff work with gles2

(anoying failing silently of gles2 when minfilter uses mipmap but there is none provided)