Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-07-30 14:40:42 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-07-30 14:43:40 +0300
commitb9718299ea509df2a3d563f0ac2639f01cad39ab (patch)
treec041eb7cb7633f461cf07c164690875229e5c2b7 /source/blender/draw/DRW_engine.h
parent51be0a765e44512dbc2b89ff9c3f8b225f7b7565 (diff)
Fix crash clicking in the 3D view on startup
Setting the 3D view cursor on startup could crash because the viewport hasn't been assigned to the region.
Diffstat (limited to 'source/blender/draw/DRW_engine.h')
-rw-r--r--source/blender/draw/DRW_engine.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/DRW_engine.h b/source/blender/draw/DRW_engine.h
index 64a02f3931b..e31200ae82f 100644
--- a/source/blender/draw/DRW_engine.h
+++ b/source/blender/draw/DRW_engine.h
@@ -129,7 +129,8 @@ void DRW_draw_select_loop(struct Depsgraph *depsgraph,
void DRW_draw_depth_loop(struct Depsgraph *depsgraph,
struct ARegion *ar,
struct View3D *v3d,
- struct GPUViewport *viewport);
+ struct GPUViewport *viewport,
+ bool use_opengl_context);
void DRW_draw_depth_loop_gpencil(struct Depsgraph *depsgraph,
struct ARegion *ar,
struct View3D *v3d,