mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
commit
908be4818f
112 changed files with 2645 additions and 680 deletions
|
|
@ -87,9 +87,11 @@ void GFXD3D9CardProfiler::setupCardCapabilities()
|
|||
bool canDoFourStageDetailBlend = ( caps.TextureOpCaps & D3DTEXOPCAPS_SUBTRACT ) &&
|
||||
( caps.PrimitiveMiscCaps & D3DPMISCCAPS_TSSARGTEMP ) &&
|
||||
( caps.MaxTextureBlendStages > 3 );
|
||||
bool canDoIndependentMrtBitDepth = (caps.PrimitiveMiscCaps & D3DPMISCCAPS_MRTINDEPENDENTBITDEPTHS ? 1 : 0 );
|
||||
|
||||
setCapability( "lerpDetailBlend", canDoLERPDetailBlend );
|
||||
setCapability( "fourStageDetailBlend", canDoFourStageDetailBlend );
|
||||
setCapability( "independentMrtBitDepth", canDoIndependentMrtBitDepth);
|
||||
}
|
||||
|
||||
bool GFXD3D9CardProfiler::_queryCardCap(const String &query, U32 &foundResult)
|
||||
|
|
|
|||
|
|
@ -31,6 +31,9 @@
|
|||
#include "gfx/gfxDebugEvent.h"
|
||||
#include "windowManager/win32/win32Window.h"
|
||||
|
||||
#ifndef _GFXDEVICE_H_
|
||||
#include "gfx/gfxDevice.h"
|
||||
#endif
|
||||
|
||||
GFXPCD3D9TextureTarget::GFXPCD3D9TextureTarget()
|
||||
: mTargetSize( Point2I::Zero ),
|
||||
|
|
@ -451,6 +454,7 @@ void GFXPCD3D9WindowTarget::createAdditionalSwapChain()
|
|||
|
||||
void GFXPCD3D9WindowTarget::resetMode()
|
||||
{
|
||||
GFX->beginReset();
|
||||
mWindow->setSuppressReset(true);
|
||||
|
||||
if (mSwapChain)
|
||||
|
|
@ -509,6 +513,7 @@ void GFXPCD3D9WindowTarget::zombify()
|
|||
|
||||
void GFXPCD3D9WindowTarget::resurrect()
|
||||
{
|
||||
GFX->beginReset();
|
||||
if(mImplicit)
|
||||
{
|
||||
setImplicitSwapChain();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue