You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compile was success, but then on run it fails with error "invalid enumerant"
On 2013-10-11 00:36:21 +0000, Alex Szpakowski wrote:
Does your system and drivers have support for OpenGL 3.2+ compatibility profile contexts? You should check whether SDL_GL_CreateContext returns NULL.
The MESA driver does not support compatibility profile contexts for OpenGL 3.x+, only core profile (and right now it doesn't support OpenGL 3.2, only 3.1.)
If you're getting the error from glGetError, that's probably GLEW's fault, not SDL's or your code's. You will probably be able to ignore it (semi-) safely.
On 2013-10-11 04:46:44 +0000, Sam Lantinga wrote:
Created attachment 1362
code sample
On 2013-10-11 04:47:59 +0000, Sam Lantinga wrote:
Does glew fail with an error, or does glGetError() just return an error status? If it's the latter, it just means that glew tried to query something that wasn't supported, and it's fine.
On 2013-10-11 07:45:22 +0000, lemanyk wrote:
glGetError() return an error status.
My system support OpenGL4.3. I use glew 1.10, sdl2.0 and nvidia 325.15 driver
Created attachment 1400
Minimum code to reproduce the problem
I'm having the same issue. I can create and use an OpenGL 2.1 context just fine. However anything higher than that fails to create. the SDL_GetError() simply says "Could not create GL context". I am able to get a higher version context using glfw with the same version of glew as I'm trying to use with SDL.
glew version is 1.10.0
SDL2 version is 2.0.1
Running that function gives me this output:
[Pass] l(54) f(src/Engine/GameManager.cpp): SDL initialised.
[Pass] l(69) f(src/Engine/GameManager.cpp): SDL_Window created.
[Error] l(75) f(src/Engine/GameManager.cpp): Could not create GL context
Changing nothing but the requested version number to 2, 1 gives this (and the context works as expected from there - but for this project I need a 3.x context):
[Pass] l(54) f(src/Engine/GameManager.cpp): SDL initialised.
[Pass] l(69) f(src/Engine/GameManager.cpp): SDL_Window created.
[Pass] l(79) f(src/Engine/GameManager.cpp): GL_Context created.
[Log] l(84) f(src/Engine/GameManager.cpp): OpenGL context version: 2.1.2 NVIDIA 304.108
This is my glxinfo from terminal:
glxinfo | grep -i opengl
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 690/PCIe/SSE2
OpenGL core profile version string: 4.2.0 NVIDIA 304.108
OpenGL core profile shading language version string: 4.20 NVIDIA via Cg compiler
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.2.0 NVIDIA 304.108
OpenGL shading language version string: 4.20 NVIDIA via Cg compiler
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
On 2013-11-01 14:02:10 +0000, Gabriel Jacobo wrote:
glxinfo | grep -i opengl
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 570/PCIe/SSE2
OpenGL core profile version string: 4.3.0 NVIDIA 319.60
OpenGL core profile shading language version string: 4.30 NVIDIA via Cg compiler
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.3.0 NVIDIA 319.60
OpenGL shading language version string: 4.30 NVIDIA via Cg compiler
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
On my system, using testgl2 as a base, I can create a context up to 4.3 with no error AFAICT. The output is black if I use anything higher than 3.1 though, but I assume this is due to the test using the legacy GL functions to draw. One thing I did notice is that we are probably querying the extensions wrong for contexts >= 3.2
Updating my nvidia drivers to 319.32 solved this for me. I also switched to GL3/gl3.h from glew. Although, the context creation was failing before glew touched anything earlier.
On 2017-08-15 05:24:25 +0000, Sam Lantinga wrote:
Hey Ryan, can you take a quick look at this when you review the context creation stuff?
On 2018-08-06 21:20:22 +0000, Ryan C. Gordon wrote:
Hello, and sorry if you're getting dozens of copies of this message by email.
We are closing out bugs that appear to be abandoned in some form. This can happen for lots of reasons: we couldn't reproduce it, conversation faded out, the bug was noted as fixed in a comment but we forgot to mark it resolved, the report is good but the fix is impractical, we fixed it a long time ago without realizing there was an associated report, etc.
Individually, any of these bugs might have a better resolution (such as WONTFIX or WORKSFORME or INVALID) but we've added a new resolution of ABANDONED to make this easily searchable and make it clear that it's not necessarily unreasonable to revive a given bug report.
So if this bug is still a going concern and you feel it should still be open: please feel free to reopen it! But unless you respond, we'd like to consider these bugs closed, as many of them are several years old and overwhelming our ability to prioritize recent issues.
(please note that hundred of bug reports were sorted through here, so we apologize for any human error. Just reopen the bug in that case!)
Thanks,
--ryan.
The text was updated successfully, but these errors were encountered:
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: HG 2.1
Reported for operating system, platform: Linux, x86_64
Comments on the original bug report:
On 2013-10-10 13:10:08 +0000, lemanyk wrote:
On 2013-10-11 00:36:21 +0000, Alex Szpakowski wrote:
On 2013-10-11 04:46:44 +0000, Sam Lantinga wrote:
On 2013-10-11 04:47:59 +0000, Sam Lantinga wrote:
On 2013-10-11 07:45:22 +0000, lemanyk wrote:
On 2013-11-01 10:32:55 +0000, Scott Drew wrote:
On 2013-11-01 14:02:10 +0000, Gabriel Jacobo wrote:
On 2013-11-02 00:19:07 +0000, Scott Drew wrote:
On 2017-08-15 05:24:25 +0000, Sam Lantinga wrote:
On 2018-08-06 21:20:22 +0000, Ryan C. Gordon wrote:
The text was updated successfully, but these errors were encountered: