зеркало из https://github.com/mozilla/pjs.git
Bug 618788 - Not initialized used in CairoImageOGL::SetData r=roc a=approval2.0
This commit is contained in:
Родитель
907413cff3
Коммит
ce24f58bf8
|
@ -681,11 +681,9 @@ CairoImageOGL::SetData(const CairoImage::Data &aData)
|
||||||
|
|
||||||
GLuint tex = mTexture.GetTextureID();
|
GLuint tex = mTexture.GetTextureID();
|
||||||
|
|
||||||
if (mSize != aData.mSize) {
|
gl->fActiveTexture(LOCAL_GL_TEXTURE0);
|
||||||
gl->fActiveTexture(LOCAL_GL_TEXTURE0);
|
InitTexture(gl, tex, LOCAL_GL_RGBA, aData.mSize);
|
||||||
InitTexture(gl, tex, LOCAL_GL_RGBA, aData.mSize);
|
mSize = aData.mSize;
|
||||||
mSize = aData.mSize;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!mASurfaceAsGLContext) {
|
if (!mASurfaceAsGLContext) {
|
||||||
mASurfaceAsGLContext = GLContextProvider::CreateForNativePixmapSurface(aData.mSurface);
|
mASurfaceAsGLContext = GLContextProvider::CreateForNativePixmapSurface(aData.mSurface);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче