I’m really having trouble creating a GL ES 2 context (at least I think that’s the problem), or finding any good examples for that. I create a window and a context and then start to use gl specific functions. From what I gather this should be all I have to do right? Here’s some code, the glCreateShader function returns 0 and glGetString returns 0 to, which is bad news from what I gather.
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);Am 15.06.2013 um 12:01 schrieb “cboe” <christoph.boehler at antiloop.com>:
I’m really having trouble creating a GL ES 2 context (at least I think that’s the problem), or finding any good examples for that. I create a window and a context and then start to use gl specific functions. From what I gather this should be all I have to do right? Here’s some code, the glCreateShader function returns 0 and glGetString returns 0 to, which is bad news from what I gather.