Stores texture in RenderbufferTexture via a BindingPointer (1/2)

TRAC #19335 Issue=271 Signed-off-by: Nicolas Capens Signed-off-by: Daniel Koch git-svn-id: https://angleproject.googlecode.com/svn/trunk@947 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 6575602e
......@@ -52,12 +52,14 @@ GLuint RenderbufferInterface::getStencilSize() const
return dx2es::GetStencilSize(getD3DFormat());
}
RenderbufferTexture::RenderbufferTexture(Texture *texture, GLenum target) : mTexture(texture), mTarget(target)
RenderbufferTexture::RenderbufferTexture(Texture *texture, GLenum target) : mTarget(target)
{
mTexture.set(texture);
}
RenderbufferTexture::~RenderbufferTexture()
{
mTexture.set(NULL);
}
IDirect3DSurface9 *RenderbufferTexture::getRenderTarget()
......
......@@ -75,7 +75,7 @@ class RenderbufferTexture : public RenderbufferInterface
private:
DISALLOW_COPY_AND_ASSIGN(RenderbufferTexture);
Texture *mTexture;
BindingPointer <Texture> mTexture;
GLenum mTarget;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment