missing glxMakeCurrent
#1
I was just looking through the newest source code for XBMC and i noticed that the glewInit commands arent preceded with a glxMakeCurrent command. at least in the RenderSystemGL.cpp which i deemed to be the most important... maybe wrongly.

No version of XBMC works on my computer and the debug log throws a "glewInit returns 1 - No GL" error. However GL works fine on my computer. I believe the issue is the missing glxMakeCurrent command.

Someone smarter than me explained this as
Quote:the function glxMakeCurrent seems to be necessary in order to
read the version correctly. Otherwise, the version string comes back as
"(null)". I'm guessing this is because the glGetString function used in
glewInit to get the version string is asking for information about the current
screen or context or something, and without this function being called, there
is no context to return information about.

I confirmed that running glewinit without glxMakeCurrent doesnt work on my computer.

This is on linux and I have the most recent stable build on my computer currently. I have an ATI5770 which works fine.
Reply
#2
It's in CWinSystemX11::RefreshGlxContext Smile
The explanation you quoted completely misses the point though.

The only time I've seen this happen is when SDL was not compiled with opengl support.
Reply

Logout Mark Read Team Forum Stats Members Help
missing glxMakeCurrent0