blackberry/SDL — Issue #15: Running SDL_SetVideoMode using SDL_OPENGL crashes
Author: jgranick
Created: 2012-03-08 07:57:54+00:00
State: open

Hi!

So far things are running well. I can initialize software through SDL just fine, but when I use the SDL_OPENGL flag, with any combination of SDL_GL_SetAttribute calls (or none at all), I always receive a crash:

eglGetDisplay: Memory fault (core dump)

I am using the "next" branch. Using the "master" branch reported an unresolved symbol ("pps_encoder_initialize") and I didn't try the "emulate" branch, because I had a feeling that was designed only for the emulator?

I tried a wide variety of calls, both complicated and simple. Here's an example of a simpler call:

screen = SDL_SetVideoMode(0, 0, 32, SDL_OPENGL);

Without SDL_OPENGL it runs just fine, but with it I receive this eglGetDisplay crash error. I'm not sure if I need to configure something differently in order to use OpenGL with this port of SDL, or not. Ideally, if the display mode is not valid, the screen will return NULL rather than crashing the application.

Thank you again! Having a full working port feels close. Thank you for creating this port of SDL... it has been hugely valuable.