mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
sfx bypass doe dediservers.
This commit is contained in:
parent
8343c096df
commit
4f00c48ff0
2 changed files with 9 additions and 2 deletions
|
|
@ -149,6 +149,12 @@ function sfxInit()
|
|||
if( sfxGetDeviceInfo() !$= "" )
|
||||
sfxShutdown();
|
||||
|
||||
if ($isDedicated)
|
||||
{
|
||||
sfxCreateDevice("Null","Null Device", false, 8);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Start it up!
|
||||
%maxBuffers = $pref::SFX::useHardware ? -1 : $pref::SFX::maxSoftwareBuffers;
|
||||
if ( !sfxCreateDevice( $pref::SFX::provider, $pref::SFX::device, $pref::SFX::useHardware, %maxBuffers ) )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue