Correct OpenGL querring for OpenGL 3.0

Bugs that have been resolved.

Moderator: Graf Zahl

User avatar
VoidMage
Posts: 18
Joined: Sat Apr 11, 2015 5:30

Correct OpenGL querring for OpenGL 3.0

Post by VoidMage »

gl_PrintStartupLog calls glGetIntegerv with GL_CONTEXT_PROFILE_MASK.
For OpenGL 3.0 that's GL_INVALID_ENUM, so the returned value is undefined.

As it's (AFAICT) done just for debugging output, it doesn't have any real effect, yet that shouldn't be a reason to not fix it.

Also, :? is there any problem with applying the gwa file parsing fix ?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany

Re: Correct OpenGL querring for OpenGL 3.0

Post by Graf Zahl »

What GWA parsing fix?
User avatar
VoidMage
Posts: 18
Joined: Sat Apr 11, 2015 5:30

Re: Correct OpenGL querring for OpenGL 3.0

Post by VoidMage »

Well, you see I've got this annoying bugzilla habit of posting to RESOLVED:FIXED bugs (and reopening them, if I can) if the original problem isn't really fixed.

I was referring to my latest addition to the gwa file thread.

...and on unrelated note: any comments about my SDL2 fullscreen hack ?

Also, nitpicking a bit, while initializing v to 0 kind-of, sort-of works, the more correct solution would be to make the call conditional on GL version (that is not to make it in the first place if < 3.1 (or was it < 3.2 ?)).

Return to “Closed Bugs”