mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-24 05:45:40 +00:00
macosx changes
changes required to get masox to run. Some further changes possible required around resourceHolder in future. The geometry shader works in macosx with gl version 3.3, though i do think some changes are required internally to account for a lack of OUT_col%
This commit is contained in:
parent
b624ec230a
commit
51624b7ce8
3 changed files with 41 additions and 2 deletions
|
|
@ -194,7 +194,7 @@ template<class T> class ResourceHolder : public ResourceHolderBase
|
|||
{
|
||||
public:
|
||||
ResourceHolder(T *t) : ResourceHolderBase(t) {}
|
||||
virtual ~ResourceHolder() { delete ((T*)mRes); }
|
||||
virtual ~ResourceHolder() { mRes = static_cast<T*>(mRes); SAFE_DELETE(mRes); }
|
||||
};
|
||||
|
||||
// Resource template. When dealing with resources, this is the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue