Hopefully fixed the black screen bug with certain emulators.

This commit is contained in:
Aloshi 2012-10-26 15:28:15 -05:00
parent bd41892cfd
commit 35d8afc174
2 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,6 @@
October 26
-Hopefully fixed the black screen bug with certain programs.
October 25
-Added gameImageNotFound tag for an image to display if a game image is not found/defined.
-Fixed keyboard not skipping joystick input configuration.

View file

@ -172,10 +172,6 @@ namespace Renderer
void destroySurface()
{
SDL_FreeSurface(sdlScreen);
sdlScreen = NULL;
SDL_Quit();
eglSwapBuffers(display, surface);
eglMakeCurrent(display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
eglDestroySurface(display, surface);
@ -185,6 +181,10 @@ namespace Renderer
display = EGL_NO_DISPLAY;
surface = EGL_NO_SURFACE;
context = EGL_NO_CONTEXT;
SDL_FreeSurface(sdlScreen);
sdlScreen = NULL;
SDL_Quit();
}
bool init(int w, int h)