mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
GFXStateBlockDesc memory leak fix.
This commit is contained in:
parent
b4ca6c6e88
commit
01ffdae89a
2 changed files with 7 additions and 3 deletions
|
|
@ -36,7 +36,7 @@
|
|||
#include "core/color.h"
|
||||
#endif
|
||||
|
||||
|
||||
#pragma pack(push, 1)
|
||||
struct GFXSamplerStateDesc
|
||||
{
|
||||
GFXTextureAddressMode addressModeU;
|
||||
|
|
@ -84,8 +84,10 @@ struct GFXSamplerStateDesc
|
|||
return !dMemcmp(this, &b, sizeof(GFXSamplerStateDesc));
|
||||
}
|
||||
};
|
||||
#pragma pack(pop)
|
||||
|
||||
/// GFXStateBlockDesc defines a render state, which is then used to create a GFXStateBlock instance.
|
||||
#pragma pack(push, 1)
|
||||
struct GFXStateBlockDesc
|
||||
{
|
||||
// Blending
|
||||
|
|
@ -189,6 +191,7 @@ struct GFXStateBlockDesc
|
|||
///
|
||||
void setColorWrites( bool red, bool green, bool blue, bool alpha );
|
||||
};
|
||||
#pragma pack(pop)
|
||||
|
||||
class GFXStateBlock : public StrongRefBase, public GFXResource
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue