In my render() method, I set a viewport:
Gdx.gl.glViewport((int)viewport.x, (int)viewport.y,(int)viewport.width
(int)viewport.height);
But when i run rayHandler.updateAndRender(), my viewport is lost. This problem
only appear on the OpenGL20. When i "excavate" the source code, I found out the
cause:
Gdx.gl.glBlendFunc(GL20.GL_SRC_ALPHA, GL20.GL_ONE);
This method causes the loss of viewport, but i don't know how to restore
viewport?
Original issue reported on code.google.com by
hunghd...@gmail.comon 25 Oct 2013 at 2:37