Hey all,

Can someone make up a patch for me? My skills with patch and diff are so rusty I can't remember them.

This replaces lines 355-370 of llwindowsdl.cpp and should fix this: http://jira.secondlife.com/browse/VWR-10607.

There are two changes. One is to add a check for "Video RAM:" as two words from the Xorg.?.log file, and the second is a very mild refactor to have it just open the file once, and not open and close it for each check.

I can't get it compiled just yet (build system stuff.. cart before the horse? lol), but this one was ticking me off.
>>>>>>>>>> 355
   if (fp)
   {
       llinfos << "Looking in " << fname
           << " for VRAM info..." << llendl;
       rtn = x11_detect_VRAM_kb_fp(fp, ": VideoRAM: ");
       if (0 == rtn)
       {
           rtn = x11_detect_VRAM_kb_fp(fp, ": Memory: ");
           if (0 == rtn)
           {
               rtn = x11_detect_VRAM_kb_fp(fp, ": Video RAM: ");
           }
       }
       fclose(fp);
   }
>>>>>>>>>>> 370

Also... what's the pastebin URL? I could just post it there I suppose... but I'd still hafta make a patch.

--GC

_______________________________________________
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/SLDev
Please read the policies before posting to keep unmoderated posting privileges

Reply via email to