mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
intel: added null ptr check
Fixes segfault in context tear-down when glClear was never called.
This commit is contained in:
parent
2e4e346890
commit
99960393ed
1 changed files with 2 additions and 1 deletions
|
|
@ -756,7 +756,8 @@ intelDestroyContext(__DRIcontextPrivate * driContextPriv)
|
|||
|
||||
INTEL_FIREVERTICES(intel);
|
||||
|
||||
_mesa_delete_array_object(&intel->ctx, intel->clear.arrayObj);
|
||||
if (intel->clear.arrayObj)
|
||||
_mesa_delete_array_object(&intel->ctx, intel->clear.arrayObj);
|
||||
|
||||
intel->vtbl.destroy(intel);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue