Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Video mode set failed: Couldn't find matching GLX visual
08-08-2005, 08:39 PM,
#1
Video mode set failed: Couldn't find matching GLX visual
I unzipped, compiled, and ran the setup, and this is what I get SadI'm running the latest ATI driver I could find, but I cant seem to get any more information, any suggestions ?(PS. This is on Fedore Core 4 /w 2.6.12 kernel)
Reply
08-08-2005, 08:52 PM,
#2
Video mode set failed: Couldn't find matching GLX visual
according to this:
http://www.devolution.com/pipermail/sdl/...54501.html

it's a problem with your driver not liking the bit depth of the game versus X. the game defaults to 16-bit.

try editing runtime/lists/videoconfig (or create it if it's not there) and put in these values:

1024 768 32 0

you can also try

1024 768 24 0
or
1024 768 0 0
or
1024 768 0 1
or
1024 768 32 1
Reply
08-09-2005, 12:04 AM,
#3
Video mode set failed: Couldn't find matching GLX visual
Thanks for the quick response, I tried all the modes you mentioned, but still no joy Sad

I checked my xorg.conf and confirmed I'm running 1280 x 1024 x 24 bit

Any other tips ? Anything else I can do to test it ?
Reply
08-09-2005, 12:18 AM,
#4
Video mode set failed: Couldn't find matching GLX visual
Unfortunately I don't have any ATI cards to test with. Others have reported problems with them, and we don't know much about them...you can see a little more about video modes in our FAQ section, but if that doesn't help, I'm not sure what you can do. I assume you don't have these kinds of problems with other games/3D applications? Can you find any instances where other people have run into this problem with similar programs?
Reply
01-03-2006, 04:05 AM,
#5
Video mode set failed: Couldn't find matching GLX visual
I recently installed vdrift on a notebook with i915(intel) video and got the very same problem. The system was running with 1280x960 16bit. I actually adjusted it to 24bit and the game will run but then performance is compromised and it is not smooth enough to play even with all of the graphics set at the lowest levels. No other games have encountered this problem so far.
Reply
02-09-2006, 01:44 PM,
#6
Video mode set failed: Couldn't find matching GLX visual
I get the same error with ati card in vdrift and similar error in other game car simulation called triggert.trigget FAQ say that problem solution is this :------------http://www.positro.net/trigger/faq.htmlI get "Failed to create window or set video mode"... what should I do?Open the file [home]/.trigger/trigger.config or [trigger install path]/trigger.config and change:requiredepth="yes" to requiredepth="no"Hopefully this will get things working, particularly on older cards. ------------This modification fix the problem in my case in triggert but i don't know how do it in vdrift. I think some like this probably fix the problem
Reply
02-10-2006, 02:07 AM,
#7
Video mode set failed: Couldn't find matching GLX visual
Hrm, it could have to do with the fact that VDrift likes to use a 24-bit depth buffer. If you have a really old card, it may only support 16-bit depth buffers. Try searching for this line in main.cpp:SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 24 );and replacing it with:SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 16 );
Reply
02-23-2006, 04:10 PM,
#8
Video mode set failed: Couldn't find matching GLX visual
joevenzon Wrote:try editing runtime/lists/videoconfig (or create it if it's not there) and put in these values:
hmmm why is the code in menu.cpp to get the supported resolutions dynamically using SDL_ListModes() commented out?(i just wanted to add something like this but saw it's already there--just commented out)
Reply
02-23-2006, 10:05 PM,
#9
Video mode set failed: Couldn't find matching GLX visual
This isn't related to the problem and solution in this post, which has to do with the depth buffer setting, which isn't a video mode issue (even though it does throw up a video mode set failed error).However, to answer your question, the way things currently work is a list of candidate modes is stored in that file, and then the video card is queried to see if it can support each mode. Modes that are unsupported aren't shown for you to pick. It's been a while since I wrote that code, but I believe the reason things are done this way rather than by using the SDL_ListModes function directly was that you get really unreliable behavior if you're running in a window rather than full screen -- like it'll just show one resolution for you to pick from.
Reply
02-27-2006, 08:01 PM,
#10
Video mode set failed: Couldn't find matching GLX visual
joevenzon Wrote:This isn't related to the problem and solution in this post, which has to do with the depth buffer setting, which isn't a video mode issue (even though it does throw up a video mode set failed error).
sorry should have started a new thread, i knew this isn't related
joevenzon Wrote:However, to answer your question, the way things currently work is a list of candidate modes is stored in that file, and then the video card is queried to see if it can support each mode.
yes, this is also how i understood the codewhat's weird that it goes trough the candidate list twice....
joevenzon Wrote:Modes that are unsupported aren't shown for you to pick. It's been a while since I wrote that code, but I believe the reason things are done this way rather than by using the SDL_ListModes function directly was that you get really unreliable behavior if you're running in a window rather than full screen -- like it'll just show one resolution for you to pick from.
so why don't simply just always query SDL_ListModes() with fullscreen as parameter?you should be (technically) able to run in any window size (that's smaller than the screen and a multiple of 16), but it's a common convention to let people choose the resolutions for windowed mode that their monitor can handle fullscreen...the current situation with the candidates is really less than ideal because all macs and many other machines currently ship with widescreen monitors....i really have to edit the config file by hand to get an acceptable fullscreen resolutioni also don't believe extending the videomodes.txt file with more resolutions is the proper solution...you will always miss some, and SDL_ListModes() already provides you exactly with the list you want, that is the resolutions provided by the machine you are running on.should i just try if i can get something working reasonably well and submit a patch...?
Reply
02-27-2006, 11:12 PM,
#11
Video mode set failed: Couldn't find matching GLX visual
Sure, sounds like you've got the right approach. If you've got SVN access, do a quick branch of the code and get it set up how you're saying. If it works fine on everyone's machine, we'll merge it into the trunk.
Reply
02-28-2006, 06:24 PM,
#12
Video mode set failed: Couldn't find matching GLX visual
joevenzon Wrote:It's been a while since I wrote that code, but I believe the reason things are done this way rather than by using the SDL_ListModes function directly was that you get really unreliable behavior if you're running in a window rather than full screen -- like it'll just show one resolution for you to pick from.
thats very weird. i wanted to start working on this and uncommented your code, and see it already worked perfectly fine, fullscreen or windowed. actually since SDL_FULLSCREEN is already always passed (like i suggested) so it can't make a difference if you are running in a window(actually there was a small bug in the code since it forgot to copy some of the resolutions that SDL_ListModes provided)
joevenzon Wrote:If you've got SVN access, do a quick branch of the code and get it set up how you're saying.
hm it sounds like a bit of overkill doing a branch for that little change.i've changed just the MENU::Load() method to:<pre>void MENU::Load(){ if (loaded) return; backbox = utility.TexLoad("gui/box.png", GL_RGBA, false); logo = utility.TexLoad("gui/vdrift-logo.png", GL_RGBA, false); //tach = utility.TexLoad("tachometer.png", GL_RGBA, false); //load reflection map used for car display sphere_reflection = utility.TexLoad("gui/refmap.png", false); int i; SDL_Rect **tmodes; /* Get available fullscreen/hardware modes */ tmodes = SDL_ListModes(NULL, SDL_FULLSCREEN|SDL_HWSURFACE); disp_data.num_modes = 0; /* Print valid modes */ for(i=0; tmodes[i]; ++i) disp_data.num_modes++; disp_data.modes = new SDL_Rect [disp_data.num_modes]; for (i = 0; i &lt; disp_data.num_modes; i++) { disp_data.modes[i].w = tmodes[i]-&gt;w; disp_data.modes[i].h = tmodes[i]-&gt;h; } //load car parts list for customization menu string part; //bool found; ifstream vmf; vmf.clear(); vmf.open(settings.GetFullDataPath("carparts/parts_list").c_str()); while( getline(vmf, part, '\n') ) { parts.push_back(part); parts_names.push_back(settings.GetCarPartName(part)); //cout &lt;&lt; "Part pathname: " &lt;&lt; part &lt;&lt; endl; } ReloadCarParts(); //load control ui BuildControls(); //load lists BuildCFList(); BuildTSList(); //load generic pages numpages = 32; pageslot = 0; page = new MENU_PAGE [numpages]; LoadPage("About"); LoadPage("AutoClutch"); LoadPage("ControlOpts"); LoadPage("Deadzone"); LoadPage("Help1"); LoadPage("JoyType"); LoadPage("Main"); LoadPage("MouseSettings"); LoadPage("MouseXAxisSensitivity"); LoadPage("MouseYAxisDeadzone"); LoadPage("MouseYAxisSensitivity"); LoadPage("NextRelease"); LoadPage("Options"); LoadPage("QuitConfirm"); LoadPage("Replay"); LoadPage("TouchComp"); LoadPage("ResetBestLapTime"); LoadPage("RestartConfirm"); LoadPage("Tools"); LoadPage("NewGameSetup"); LoadPage("SelectMode"); LoadPage("SoundSettings"); LoadPage("SoundVolume"); LoadPage("ConnectionError"); LoadPage("DisplaySettings"); LoadPage("InputSettings"); LoadPage("TreeDetail"); LoadPage("TerrainDetail"); LoadPage("TexSize"); LoadPage("MPHorKPH"); LoadPage("QuitToChange"); LoadPage("ViewDistance"); loaded = true;}</pre>
Reply
02-28-2006, 10:08 PM,
#13
Video mode set failed: Couldn't find matching GLX visual
Using that code doesn't work for me in a window. The only mode that shows up (when running in a window) is my current desktop resolution (and it shows up twice for some reason).
Reply
03-01-2006, 12:33 PM,
#14
Video mode set failed: Couldn't find matching GLX visual
joevenzon Wrote:Using that code doesn't work for me in a window. The only mode that shows up (when running in a window) is my current desktop resolution (and it shows up twice for some reason).
ok thats weird i'll look if i can get that code working on linux and if not i'd like to submit it conditionally just for __APPLE__ because here it works finebtw which version of SDL are you using?
Reply
03-01-2006, 03:30 PM,
#15
Video mode set failed: Couldn't find matching GLX visual
joevenzon Wrote:Using that code doesn't work for me in a window. The only mode that shows up (when running in a window) is my current desktop resolution (and it shows up twice for some reason).
it works fine (too) in fedora core 4
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)