Bug 1006797 - Only apply the window render offset when actually rendering to the window. r=nical

This commit is contained in:
Chris Lord
2014-10-03 13:22:32 +13:00
parent e71bc2cdd9
commit d97c2034f7
3 changed files with 16 additions and 5 deletions

View File

@@ -84,7 +84,7 @@ public:
const gfx::IntSize& aSize)
{
RefPtr<CompositingRenderTargetOGL> result
= new CompositingRenderTargetOGL(aCompositor, gfx::IntPoint(0, 0), 0, 0);
= new CompositingRenderTargetOGL(aCompositor, gfx::IntPoint(), 0, 0);
result->mInitParams = InitParams(aSize, 0, INIT_MODE_NONE);
result->mInitParams.mStatus = InitParams::INITIALIZED;
return result.forget();
@@ -112,6 +112,8 @@ public:
*/
void BindRenderTarget();
bool IsWindow() { return GetFBO() == 0; }
GLuint GetFBO() const
{
MOZ_ASSERT(mInitParams.mStatus == InitParams::INITIALIZED);