mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 910878 - Remove gl.blit-draw-not-copy preference. r=gal
This commit is contained in:
parent
0591310ec5
commit
a33eb2b4dc
@ -20,9 +20,7 @@ GLBlitHelper::GLBlitHelper(GLContext* gl)
|
||||
, mTex2DRectBlit_FragShader(0)
|
||||
, mTex2DBlit_Program(0)
|
||||
, mTex2DRectBlit_Program(0)
|
||||
, mTexBlit_UseDrawNotCopy(false)
|
||||
{
|
||||
mTexBlit_UseDrawNotCopy = Preferences::GetBool("gl.blit-draw-not-copy", false);
|
||||
}
|
||||
|
||||
GLBlitHelper::~GLBlitHelper()
|
||||
@ -490,15 +488,6 @@ GLBlitHelper::BlitTextureToTexture(GLuint srcTex, GLuint destTex,
|
||||
MOZ_ASSERT(mGL->fIsTexture(srcTex));
|
||||
MOZ_ASSERT(mGL->fIsTexture(destTex));
|
||||
|
||||
if (mTexBlit_UseDrawNotCopy) {
|
||||
// Draw is texture->framebuffer
|
||||
ScopedFramebufferForTexture destWrapper(mGL, destTex, destTarget);
|
||||
|
||||
BlitTextureToFramebuffer(srcTex, destWrapper.FB(),
|
||||
srcSize, destSize, srcTarget);
|
||||
return;
|
||||
}
|
||||
|
||||
// Generally, just use the CopyTexSubImage path
|
||||
ScopedFramebufferForTexture srcWrapper(mGL, srcTex, srcTarget);
|
||||
|
||||
|
@ -30,8 +30,6 @@ class GLBlitHelper MOZ_FINAL
|
||||
GLuint mTex2DBlit_Program;
|
||||
GLuint mTex2DRectBlit_Program;
|
||||
|
||||
bool mTexBlit_UseDrawNotCopy;
|
||||
|
||||
void UseBlitProgram();
|
||||
void SetBlitFramebufferForDestTexture(GLuint aTexture);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user