mesatest_gles fixes

After this pull request all mesatest_gles demos except ./Stencil_Test/CH11_Stencil_Test are rendering correctly.