mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-10 22:24:33 +00:00
MacOS platform support.
This commit is contained in:
parent
57dfeb829a
commit
dd64004eaf
89 changed files with 1228 additions and 5098 deletions
|
|
@ -232,3 +232,14 @@ DefineEngineStaticMethod( GFXCardProfilerAPI, queryProfile, S32, ( const char *n
|
|||
{
|
||||
return (S32)GFX->getCardProfiler()->queryProfile( name, (U32)defaultValue );
|
||||
}
|
||||
|
||||
|
||||
DefineEngineStaticMethod( GFXCardProfilerAPI, getBestDepthFormat, String, (),,
|
||||
"Returns the card name." )
|
||||
{
|
||||
if (GFX->getCardProfiler()->queryProfile("GL::Workaround::intel_mac_depth", false))
|
||||
return "GFXFormatD16";
|
||||
else
|
||||
return "GFXFormatD24S8";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue