mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1666293 - Flush explicitly before deleting textures. r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D90893
This commit is contained in:
parent
fbd08da6e1
commit
69821ba2af
@ -2329,6 +2329,13 @@ class GLContext : public GenericAtomicRefCounted, public SupportsWeakPtr {
|
||||
}
|
||||
|
||||
void fDeleteTextures(GLsizei n, const GLuint* names) {
|
||||
#ifdef XP_MACOSX
|
||||
// On the Mac the call to fDeleteTextures() triggers a flush. But it
|
||||
// happens at the wrong time, which can lead to crashes. To work around
|
||||
// this we call fFlush() explicitly ourselves, before the call to
|
||||
// fDeleteTextures(). This fixes bug 1666293.
|
||||
fFlush();
|
||||
#endif
|
||||
raw_fDeleteTextures(n, names);
|
||||
TRACKING_CONTEXT(DeletedTextures(this, n, names));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user