Black screen after creating then destroying a surface - Raspberry Pi Forums
i'm working on emulator front-end displays gui , launches selected programs. reason, programs (i've been testing scummvm), gives black screen (when launched command line).
here's short sample program shows problem scummvm (tested 192/64mb memory split on raspbian): https://dl.dropbox.com/u/2816162/gles_tests.zip
example creates sdl window (originally used input in front-end), creates egl rendering surface, destroys surface, quits sdl, launches scummvm.
i've tested several variations work fine:
1. system("scummvm"); call.
2. bcm_host_init(); system("scummvm"); bcm_host_deinit();
3. create sdl window, close it, launch scummvm.
you'll need sdl , scummvm installed run in addition normal raspberry pi libraries (bcm_host, gles, egl) should able sudo apt-get install sdl1.2-dev scummvm. build make. when black screen, press ctrl-q close scummvm.
of renderer code cobbled examples, i'm thinking might missing deinitialization code somewhere. i'm not sure if problem gpu, code, or scummvm - don't think it's scummvm, since works fine if don't create , destroy display surface first.
here's short sample program shows problem scummvm (tested 192/64mb memory split on raspbian): https://dl.dropbox.com/u/2816162/gles_tests.zip
example creates sdl window (originally used input in front-end), creates egl rendering surface, destroys surface, quits sdl, launches scummvm.
i've tested several variations work fine:
1. system("scummvm"); call.
2. bcm_host_init(); system("scummvm"); bcm_host_deinit();
3. create sdl window, close it, launch scummvm.
you'll need sdl , scummvm installed run in addition normal raspberry pi libraries (bcm_host, gles, egl) should able sudo apt-get install sdl1.2-dev scummvm. build make. when black screen, press ctrl-q close scummvm.
of renderer code cobbled examples, i'm thinking might missing deinitialization code somewhere. i'm not sure if problem gpu, code, or scummvm - don't think it's scummvm, since works fine if don't create , destroy display surface first.
fixed moving sdl deinitialization after egl deinitialization. i'm kind of dumb.
raspberrypi
Comments
Post a Comment