GarageGames / Torque3D

MIT Licensed Open Source version of Torque 3D from GarageGames
http://torque3d.org
MIT License
3.35k stars 1.2k forks source link

Resolves #740 - Remove redundant code in _GFXInitGetInitialRes() #2264

Closed chaigler closed 6 years ago

chaigler commented 6 years ago

Fixes a slight defect in _GFXInitialGetInitialRes() as discussed by #740. The function originally took an initialSize parameter that was unused and also defined some consts to setup default video mode settings, all of which are ignored/immediately overwritten by the call to parseFromString() which sets the defaults based on $pref::Video::mode.

In the event that $pref::Video:;mode doesn't exist, the engine will simply use the defaults values set by the GFXVideoMode constructor.