Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FrameBufferSample has problem on resize #17

Open
Juankz opened this issue Apr 24, 2016 · 1 comment
Open

FrameBufferSample has problem on resize #17

Juankz opened this issue Apr 24, 2016 · 1 comment

Comments

@Juankz
Copy link

Juankz commented Apr 24, 2016

When the transition is going the framebuffer render the image with black bars. Any idea how to solve it?

This is the picture. The screen has been resized.
captura de pantalla de 2016-04-24 22 54 53

This is when transitioning
captura de pantalla de 2016-04-24 22 57 31

@andreas1724
Copy link

The problem is, that drawing to the framebuffer is done with the wrong viewport sizes. You can fix it by adding a viewport.update() before drawing to the framebuffer:

private void updateStatePicture() {
    ...

    if (time > GALLERY_PICTURE_TIME) {
        viewport.update(VIRTUAL_WIDTH, VIRTUAL_HEIGHT);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants