Use theme color for clearing viewport background

We'll obviously do more fancy stuff here later, but we don't have to look at pure blackness either ;)
This commit is contained in:
Julian Eisel
2016-10-07 03:09:21 +02:00
parent 1b4b4dfd0c
commit 1997b0f03c

View File

@@ -221,7 +221,7 @@ static void view3d_stereo3d_setup(Scene *scene, View3D *v3d, ARegion *ar)
static void view3d_draw_background(const bContext *C)
{
/* TODO viewport */
glClearColor(0.0, 0.0, 0.0, 0.0);
UI_ThemeClearColor(TH_HIGH_GRAD);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
}