mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 786747 - Fix the BindTexture order and re-bind textures correctly. r=jgilbert
--HG-- extra : rebase_source : 87c790e359ca64d1b7dcc34920281e9861d16db9
This commit is contained in:
parent
6de4eae610
commit
3c509a0dcc
@ -424,8 +424,8 @@ public:
|
||||
EGL_NO_CONTEXT,
|
||||
EGL_NATIVE_BUFFER_ANDROID,
|
||||
buffer, attrs);
|
||||
fEGLImageTargetTexture2D(LOCAL_GL_TEXTURE_EXTERNAL, image);
|
||||
fBindTexture(LOCAL_GL_TEXTURE_EXTERNAL, texture);
|
||||
fEGLImageTargetTexture2D(LOCAL_GL_TEXTURE_EXTERNAL, image);
|
||||
sEGLLibrary.fDestroyImage(EGL_DISPLAY(), image);
|
||||
return true;
|
||||
#else
|
||||
|
@ -953,6 +953,10 @@ ShadowImageLayerOGL::RenderLayer(int aPreviousFrameBuffer,
|
||||
}
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
} else if (mExternalBufferTexture.IsAllocated()) {
|
||||
gl()->MakeCurrent();
|
||||
gl()->fActiveTexture(LOCAL_GL_TEXTURE0);
|
||||
gl()->fBindTexture(LOCAL_GL_TEXTURE_EXTERNAL, mExternalBufferTexture.GetTextureID());
|
||||
|
||||
ShaderProgramOGL *program = mOGLManager->GetProgram(RGBAExternalLayerProgramType, GetMaskLayer());
|
||||
|
||||
gl()->ApplyFilterToBoundTexture(mFilter);
|
||||
@ -969,6 +973,7 @@ ShadowImageLayerOGL::RenderLayer(int aPreviousFrameBuffer,
|
||||
mOGLManager->BindAndDrawQuadWithTextureRect(program,
|
||||
GetVisibleRegion().GetBounds(),
|
||||
nsIntSize(mSize.width, mSize.height));
|
||||
gl()->fBindTexture(LOCAL_GL_TEXTURE_EXTERNAL, 0);
|
||||
#endif
|
||||
} else if (mSharedHandle) {
|
||||
GLContext::SharedHandleDetails handleDetails;
|
||||
|
Loading…
Reference in New Issue
Block a user