mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-20 03:45:26 +00:00
Merge pull request #2041 from Azaezel/clearTextureStateImmediate
method to make sure we're not getting pixel shader inputs mixed with …
This commit is contained in:
commit
8a0074eb1d
4 changed files with 12 additions and 5 deletions
|
|
@ -572,6 +572,13 @@ void GFXDevice::updateStates(bool forceSetAll /*=false*/)
|
|||
#endif
|
||||
}
|
||||
|
||||
void GFXDevice::clearTextureStateImmediate(U32 stage)
|
||||
{
|
||||
mCurrentTexture[stage] = NULL;
|
||||
mCurrentCubemap[stage] = NULL;
|
||||
setTextureInternal(stage, NULL);
|
||||
}
|
||||
|
||||
void GFXDevice::setPrimitiveBuffer( GFXPrimitiveBuffer *buffer )
|
||||
{
|
||||
if( buffer == mCurrentPrimitiveBuffer )
|
||||
|
|
|
|||
|
|
@ -967,6 +967,7 @@ public:
|
|||
/// @{
|
||||
/// Sets the dirty Render/Texture/Sampler states from the caching system
|
||||
void updateStates(bool forceSetAll = false);
|
||||
void clearTextureStateImmediate(U32 stage);
|
||||
|
||||
/// Returns the forced global wireframe state.
|
||||
static bool getWireframe() { return smWireframe; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue