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

onResume() Workaround For SDL_Window #3

Open
leffuy opened this issue Feb 22, 2012 · 0 comments
Open

onResume() Workaround For SDL_Window #3

leffuy opened this issue Feb 22, 2012 · 0 comments
Assignees
Milestone

Comments

@leffuy
Copy link
Member

leffuy commented Feb 22, 2012

Description

Currently the following code segment fails during the onResume() sequence in the Android system:

SDL_Log("Window recreation");
SDL_RecreateWindow((*(*system_objects).renderer).window, SDL_WINDOW_FULLSCREEN | SDL_WINDOW_OPENGL);
SDL_Log("Window recreation done, Getting new surface");
(*(*system_objects).renderer).screen = SDL_GetWindowSurface((*(*system_objects).renderer).window); //get a new handle to the screen if lost somehow

The Window cannot reacquire the primary rendering surface on the EGL level within the Android App Instance. This means the app needs to be completely destroyed and restarted in order for SDL to reacquire the screen (after a loss), in the current status of the tandum_incubator.

A resolution to this issue aims to successfully resume the application from a pause state.

@ghost ghost assigned leffuy Feb 22, 2012
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

1 participant