Skip to content

The viewport is lost #30

Description

@GoogleCodeExporter
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.com on 25 Oct 2013 at 2:37

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions