Dgame revived

Namespace via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Tue Feb 24 01:07:18 PST 2015


On Tuesday, 24 February 2015 at 00:53:49 UTC, Mike Parker wrote:
> On 2/24/2015 8:18 AM, Gan wrote:
>
>>
>> Doesn't work. Still gives the same OpenGL too low error. I 
>> think you
>> need to place the lines
>> SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
>>             SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 
>> 3);
>>             SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK,
>> SDL_GL_CONTEXT_PROFILE_CORE);
>>             SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS,
>> SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG);
>>
>> before window creation.
>
> Yes. All SDL_GL_SetAttributes must be called before window 
> creation for them to have any effect. I thought that was 
> already understood.

You sound a little rude. :D
I thought that must precede the GLContext. That made the most 
sense to me. I will change it. ;)


More information about the Digitalmars-d-announce mailing list