mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 13:21:28 +00:00
Bug 618788 - Not initialized used in CairoImageOGL::SetData r=roc a=approval2.0
This commit is contained in:
parent
7932b1cfe8
commit
d6fc95290e
@ -681,11 +681,9 @@ CairoImageOGL::SetData(const CairoImage::Data &aData)
|
||||
|
||||
GLuint tex = mTexture.GetTextureID();
|
||||
|
||||
if (mSize != aData.mSize) {
|
||||
gl->fActiveTexture(LOCAL_GL_TEXTURE0);
|
||||
InitTexture(gl, tex, LOCAL_GL_RGBA, aData.mSize);
|
||||
mSize = aData.mSize;
|
||||
}
|
||||
gl->fActiveTexture(LOCAL_GL_TEXTURE0);
|
||||
InitTexture(gl, tex, LOCAL_GL_RGBA, aData.mSize);
|
||||
mSize = aData.mSize;
|
||||
|
||||
if (!mASurfaceAsGLContext) {
|
||||
mASurfaceAsGLContext = GLContextProvider::CreateForNativePixmapSurface(aData.mSurface);
|
||||
|
Loading…
x
Reference in New Issue
Block a user