зеркало из https://github.com/mozilla/gecko-dev.git
Bug 904483 - Fix out of order destruction problem when destroying GrContext r=mattwoodrow
This commit is contained in:
Родитель
a286cc2d3b
Коммит
6aebd7355c
|
@ -136,12 +136,12 @@ int GrContext::GetThreadInstanceCount() {
|
|||
}
|
||||
|
||||
GrContext::~GrContext() {
|
||||
this->flush();
|
||||
|
||||
for (int i = 0; i < fCleanUpData.count(); ++i) {
|
||||
(*fCleanUpData[i].fFunc)(this, fCleanUpData[i].fInfo);
|
||||
}
|
||||
|
||||
this->flush();
|
||||
|
||||
// Since the gpu can hold scratch textures, give it a chance to let go
|
||||
// of them before freeing the texture cache
|
||||
fGpu->purgeResources();
|
||||
|
|
Загрузка…
Ссылка в новой задаче