diff options
author | Joonbum Ko <joonbum.ko@samsung.com> | 2024-09-02 13:22:04 +0900 |
---|---|---|
committer | Joonbum Ko <joonbum.ko@samsung.com> | 2024-09-02 13:22:04 +0900 |
commit | 2f26a97f6740be97af2fe80f3b2ab6a3024201eb (patch) | |
tree | db02f8d65e1b1a6f6910dcfaad1b017289ac9be0 | |
parent | 87f49d7973ed40922d545f88f01a2c5db551ee72 (diff) | |
download | mesa-2f26a97f6740be97af2fe80f3b2ab6a3024201eb.tar.gz mesa-2f26a97f6740be97af2fe80f3b2ab6a3024201eb.tar.bz2 mesa-2f26a97f6740be97af2fe80f3b2ab6a3024201eb.zip |
fix null pointer access problem
Change-Id: I9b1ee1e5c6090ac28c9a72849e40dd93d312810f
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
-rw-r--r-- | src/mesa/state_tracker/st_atom_framebuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom_framebuffer.c b/src/mesa/state_tracker/st_atom_framebuffer.c index 5c2f2aabca2..ca193a04cb2 100644 --- a/src/mesa/state_tracker/st_atom_framebuffer.c +++ b/src/mesa/state_tracker/st_atom_framebuffer.c @@ -119,7 +119,7 @@ st_update_framebuffer_state( struct st_context *st ) /* Window framebuffer changes are received here. */ #ifdef HAVE_TIZEN_PLATFORM bool valid = true; - if (fb->drawable->validate_drawable) + if (fb->drawable && fb->drawable->validate_drawable) valid = fb->drawable->validate_drawable(fb->drawable); st_manager_validate_framebuffers(st, valid); #else |