diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-10-21 11:20:35 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-10-21 11:20:35 +0300 |
commit | 3af8f885392a3ed51f6dfa0e50baf0a7cef027d1 (patch) | |
tree | b2126a0a74f2f20522ad1757e5da3f207d3939a0 /source/blender | |
parent | 95fddf145242003e536bcee46c6022eb6383871c (diff) | |
parent | 34c835cbd10d544088b365a78e5da7cda1f0d6c2 (diff) |
Merge branch 'blender-v2.81-release'
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image_proj.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c index 5e004c7d675..4c7e5e18257 100644 --- a/source/blender/editors/sculpt_paint/paint_image_proj.c +++ b/source/blender/editors/sculpt_paint/paint_image_proj.c @@ -89,6 +89,7 @@ #include "ED_view3d.h" #include "GPU_extensions.h" +#include "GPU_init_exit.h" #include "WM_api.h" #include "WM_types.h" @@ -6137,6 +6138,9 @@ static bool texture_paint_image_from_view_poll(bContext *C) CTX_wm_operator_poll_msg_set(C, "No 3D viewport found to create image from"); return false; } + if (!GPU_is_initialized()) { + return false; + } return true; } |