OpenGL 1.1 context creation failure |
.3lite
|
Hello guys
I'm having some sort of issue with the SDL 2.0.3 during OpenGL context creation. In fact personally I do not have any issues, but I do have few users who are experiencing this specific error. My OpenGL context creation looks like this:
As you can see I'm requesting at least 3/3/2 pixel format and one alpha bit if pixel format has alpha channel and nothing besides that. However, I have currently two users experiencing following issue on their computers: I told them to use GLView to find out more about their OpenGL and graphics card. Here is what I've got: User with Geforce 7300 SE: http://imgur.com/a/5Kf2C As you can see it supports core 1.1 just fine. Also, another User with Geforce 9300M: http://imgur.com/4WUV2eO,8zBgJ6t,H8toXO3 http://i.imgur.com/46Cmirg.jpg As far as I know they have up to date graphics driver. As far as I can tell everything is just fine, all of those graphics card should be capable of creating the context just fine. It's worth noticing that those strange symbols in error message comes from SDL itself. |
|||||||||||||
|
OpenGL 1.1 context creation failure |
Alex Szpakowski
Guest
|
Actually there is no such thing as Core Profile OpenGL 1.1. The concept of Core Profiles was introduced in OpenGL 3, and requesting a Core Profile context on Windows can usually only be done with functionality included in drivers that also support OpenGL 3, so your use of that flag might be causing issues.
|
|||||||||||||
|
OpenGL 1.1 context creation failure |
Jonny D
|
I would second that. You can only get a core profile when you request GL 3.2 - 3.3. The core profile distinction does not exist in any other version of OpenGL. The best thing to do is to attempt to get a GL 3 core profile if you need it, then try again after disabling the core profile flag:
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, 0); Jonny D On Fri, Jun 12, 2015 at 1:27 PM, Alex Szpakowski wrote:
|
|||||||||||||||
|
.3lite
|
I believe you were right guys, thank you for that. One user confirmed that he can launch the application after I did set SDL_GL_CONTEXT_PROFILE_MASK to 0. I do not need any features of OpenGL 3.x so I guess setting mask to 0 is the right way in my case.
Thank you again. |
|||||||||||
|
.3lite
|
As a side note, shouldn't the error message be more specific rather than bunch of strange symbols?
|
|||||||||||
|