03-18-2006, 06:03 PM,
|
|
joevenzon
Administrator
      
|
Posts: 2,679
Threads: 52
Joined: Jun 2005
|
|
Video mode set failed: Couldn't find matching GLX visual
In windows, a resolution change invalidates all of your opengl data, so you need to re-load it all again. Also, if you change your texture size, you need to unload and re-load your opengl textures. After a resolution change or texture size change, a bunch of Load functions get re-called (such as Menu.Load). Menu::Load() is written as it is to automatically unload and reload any resources that are already loaded. Another way to do this would have been to write a ReLoad function, but since it'd share a lot of code with Load anyway, it made more sense to just make Load smart enough to handle all situations.
|
|
03-18-2006, 07:18 PM,
|
|
abs1nth
Senior Member
   
|
Posts: 358
Threads: 5
Joined: Sep 2005
|
|
Video mode set failed: Couldn't find matching GLX visual
joevenzon Wrote:In windows, a resolution change invalidates all of your opengl data, so you need to re-load it all again. Also, if you change your texture size, you need to unload and re-load your opengl textures. After a resolution change or texture size change, a bunch of Load functions get re-called (such as Menu.Load). Menu::Load() is written as it is to automatically unload and reload any resources that are already loaded. Another way to do this would have been to write a ReLoad function, but since it'd share a lot of code with Load anyway, it made more sense to just make Load smart enough to handle all situations. ok thanks :wink:but even when just starting up vdrift this method is called twice, obviously without a resolution change involved....one of this surely must be superflicious?
|
|
|