08-08-2005, 08:39 PM,
|
|
tfindlay
Junior Member
|
Posts: 2
Threads: 1
Joined: Aug 2005
|
|
Video mode set failed: Couldn't find matching GLX visual
I unzipped, compiled, and ran the setup, and this is what I get I'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)
|
|
08-08-2005, 08:52 PM,
|
|
joevenzon
Administrator
|
Posts: 2,679
Threads: 52
Joined: Jun 2005
|
|
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
|
|
08-09-2005, 12:04 AM,
|
|
tfindlay
Junior Member
|
Posts: 2
Threads: 1
Joined: Aug 2005
|
|
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
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 ?
|
|
01-03-2006, 04:05 AM,
|
|
jaddin
Junior Member
|
Posts: 12
Threads: 2
Joined: Aug 2005
|
|
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.
|
|
02-09-2006, 01:44 PM,
|
|
overspace
Junior Member
|
Posts: 1
Threads: 0
Joined: Feb 2006
|
|
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
|
|
02-27-2006, 08:01 PM,
|
|
abs1nth
Senior Member
|
Posts: 358
Threads: 5
Joined: Sep 2005
|
|
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...?
|
|
02-28-2006, 06:24 PM,
|
|
abs1nth
Senior Member
|
Posts: 358
Threads: 5
Joined: Sep 2005
|
|
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 < disp_data.num_modes; i++) { disp_data.modes[i].w = tmodes[i]->w; disp_data.modes[i].h = tmodes[i]->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 << "Part pathname: " << part << 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>
|
|
|