mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1045955 - Style fix. - r=kamidphish
This commit is contained in:
parent
b538629725
commit
5e66cf642c
@ -59,13 +59,20 @@ SharedSurface::ProdCopy(SharedSurface* src, SharedSurface* dest,
|
||||
GLuint destTex = dest->ProdTexture();
|
||||
GLenum destTarget = dest->ProdTextureTarget();
|
||||
|
||||
gl->BlitHelper()->BlitFramebufferToTexture(0, destTex, src->mSize, dest->mSize, destTarget);
|
||||
gl->BlitHelper()->BlitFramebufferToTexture(0, destTex,
|
||||
src->mSize,
|
||||
dest->mSize,
|
||||
destTarget,
|
||||
true);
|
||||
} else if (dest->mAttachType == AttachmentType::GLRenderbuffer) {
|
||||
GLuint destRB = dest->ProdRenderbuffer();
|
||||
ScopedFramebufferForRenderbuffer destWrapper(gl, destRB);
|
||||
|
||||
gl->BlitHelper()->BlitFramebufferToFramebuffer(0, destWrapper.FB(),
|
||||
src->mSize, dest->mSize);
|
||||
gl->BlitHelper()->BlitFramebufferToFramebuffer(0,
|
||||
destWrapper.FB(),
|
||||
src->mSize,
|
||||
dest->mSize,
|
||||
true);
|
||||
} else {
|
||||
MOZ_CRASH("Unhandled dest->mAttachType.");
|
||||
}
|
||||
@ -97,13 +104,20 @@ SharedSurface::ProdCopy(SharedSurface* src, SharedSurface* dest,
|
||||
GLuint srcTex = src->ProdTexture();
|
||||
GLenum srcTarget = src->ProdTextureTarget();
|
||||
|
||||
gl->BlitHelper()->BlitTextureToFramebuffer(srcTex, 0, src->mSize, dest->mSize, srcTarget);
|
||||
gl->BlitHelper()->BlitTextureToFramebuffer(srcTex, 0,
|
||||
src->mSize,
|
||||
dest->mSize,
|
||||
srcTarget,
|
||||
true);
|
||||
} else if (src->mAttachType == AttachmentType::GLRenderbuffer) {
|
||||
GLuint srcRB = src->ProdRenderbuffer();
|
||||
ScopedFramebufferForRenderbuffer srcWrapper(gl, srcRB);
|
||||
|
||||
gl->BlitHelper()->BlitFramebufferToFramebuffer(srcWrapper.FB(), 0,
|
||||
src->mSize, dest->mSize);
|
||||
gl->BlitHelper()->BlitFramebufferToFramebuffer(srcWrapper.FB(),
|
||||
0,
|
||||
src->mSize,
|
||||
dest->mSize,
|
||||
true);
|
||||
} else {
|
||||
MOZ_CRASH("Unhandled src->mAttachType.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user