[SailfishDevel] SDL2 without OpenGL, nothing but a black screen
kim at foder.dk
kim at foder.dk
Wed Jun 4 09:19:01 UTC 2014
Have you tried running the project on the phone with the debugger, or from a command line ?
I have found that this behaviour normally stems from something missing, and that will be displayed in the debugger or on the commandline.
/Kim
> Ahoy,
>
> I was coding something simple with 2D-only graphics using SDL2, and
> noticed that drawing graphics that does work in the emulator, does not
> work on the actual phone.
>
> To demonstrate that, I copied the example code from
> , added a Makefile and
> hello.bmp, and placed those onto GitHub:
> .
>
> As also described in README.md, the sample runs fine in the emulator,
> but fails to show anything but a black screen on the actual phone.
> Additionally, if the |SDL_RENDERER_SOFTWARE ||flag is used instead of
> SDL_RENDERER_ACCELERATED, the sample still runs on the emulator, but
> causes a segmentation fault on the phone.
>
> The phone is running 1.0.5.19.
>
> Am I doing something wrong? (Can't imagine what that would be.)
>
>
> Best Regards,
> Lauri Nurmi
>
> |
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org
More information about the Devel
mailing list