use unique_ptr to hold the Layers vector
This commit is contained in:
15
src/rtt.cpp
15
src/rtt.cpp
@@ -12,6 +12,21 @@ RTT::RTT()
|
||||
bound = false;
|
||||
}
|
||||
|
||||
RTT::RTT(RTT&& other)
|
||||
{
|
||||
fboID = other.fboID;
|
||||
rboID = other.rboID;
|
||||
w = other.w;
|
||||
h = other.h;
|
||||
bound = other.bound;
|
||||
|
||||
other.fboID = 0;
|
||||
other.rboID = 0;
|
||||
other.w = 0;
|
||||
other.h = 0;
|
||||
other.bound = false;
|
||||
}
|
||||
|
||||
RTT::~RTT()
|
||||
{
|
||||
//destroy();
|
||||
|
||||
Reference in New Issue
Block a user