mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 665070 - part 13: require all framebuffer attachments to have same size - r=jrmuizel
This commit is contained in:
parent
0dd43bd3a5
commit
bdf543b289
@ -722,6 +722,10 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
bool HasSameDimensionsAs(const WebGLRectangleObject& other) const {
|
||||
return width() == other.width() && height() == other.height();
|
||||
}
|
||||
|
||||
protected:
|
||||
WebGLsizei mWidth;
|
||||
WebGLsizei mHeight;
|
||||
@ -1861,7 +1865,14 @@ public:
|
||||
// has at least two among Depth, Stencil, DepthStencil
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
|
||||
if (!mDepthAttachment.IsNull() && !mDepthAttachment.HasSameDimensionsAs(mColorAttachment))
|
||||
return PR_TRUE;
|
||||
if (!mStencilAttachment.IsNull() && !mStencilAttachment.HasSameDimensionsAs(mColorAttachment))
|
||||
return PR_TRUE;
|
||||
if (!mDepthStencilAttachment.IsNull() && !mDepthStencilAttachment.HasSameDimensionsAs(mColorAttachment))
|
||||
return PR_TRUE;
|
||||
|
||||
else return PR_FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user