Wedged high-res non-tiled deferred snapshot logic into LLViewerWindow::rawRawSnapshot

This commit is contained in:
Shyotl
2013-02-25 12:59:17 -06:00
parent 34cf0329ab
commit fd21197d2a
4 changed files with 85 additions and 38 deletions

View File

@@ -65,6 +65,7 @@ public:
//whether or not to use FBO implementation
static bool sUseFBO;
static U32 sBytesAllocated;
static U32 sCurFBO;
LLRenderTarget();
virtual ~LLRenderTarget();
@@ -101,9 +102,6 @@ public:
//applies appropriate viewport
virtual void bindTarget();
//unbind target for rendering
static void unbindTarget();
//clear render targer, clears depth buffer if present,
//uses scissor rect if in copy-to-texture mode
void clear(U32 mask = 0xFFFFFFFF);
@@ -156,6 +154,7 @@ protected:
std::vector<U32> mTex;
std::vector<U32> mInternalFormat;
U32 mFBO;
U32 mPreviousFBO;
U32 mDepth;
bool mStencil;
bool mUseDepth;