mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-17 22:10:21 +01:00
draw: add alloc check
This commit is contained in:
parent
71646528da
commit
51729b5119
1 changed files with 2 additions and 0 deletions
|
|
@ -173,6 +173,8 @@ draw_llvm_create(struct draw_context *draw)
|
|||
#endif
|
||||
|
||||
llvm = CALLOC_STRUCT( draw_llvm );
|
||||
if (!llvm)
|
||||
return NULL;
|
||||
|
||||
llvm->draw = draw;
|
||||
llvm->engine = draw->engine;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue