Adds RenderTarget wrapper class for surfaces and views.
TRAC #22092
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1429 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/Renderbuffer.h b/src/libGLESv2/Renderbuffer.h
index 740311c..4a93277 100644
--- a/src/libGLESv2/Renderbuffer.h
+++ b/src/libGLESv2/Renderbuffer.h
@@ -20,6 +20,7 @@
#include "common/RefCountObject.h"
#include "renderer/SwapChain.h"
+#include "renderer/RenderTarget.h"
namespace rx
{
@@ -151,7 +152,6 @@
GLsizei mHeight;
GLenum mInternalFormat;
GLenum mActualFormat;
- D3DFORMAT mD3DFormat;
GLsizei mSamples;
private:
@@ -217,7 +217,7 @@
private:
DISALLOW_COPY_AND_ASSIGN(Colorbuffer);
- IDirect3DSurface9 *mRenderTarget;
+ rx::RenderTarget *mRenderTarget;
};
class DepthStencilbuffer : public RenderbufferStorage
@@ -231,7 +231,7 @@
virtual IDirect3DSurface9 *getDepthStencil();
protected:
- IDirect3DSurface9 *mDepthStencil;
+ rx::RenderTarget *mDepthStencil;
private:
DISALLOW_COPY_AND_ASSIGN(DepthStencilbuffer);