diff options
Diffstat (limited to 'source/blender/editors/space_file/space_file.c')
-rw-r--r-- | source/blender/editors/space_file/space_file.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/editors/space_file/space_file.c b/source/blender/editors/space_file/space_file.c index 92b86c5a057..6c67150f3a8 100644 --- a/source/blender/editors/space_file/space_file.c +++ b/source/blender/editors/space_file/space_file.c @@ -323,8 +323,7 @@ static void file_main_area_draw(const bContext *C, ARegion *ar) /* clear and setup matrix */ UI_GetThemeColor3fv(TH_BACK, col); - glClearColor(col[0], col[1], col[2], 0.0); - glClear(GL_COLOR_BUFFER_BIT); + gpuColorAndClearvf(col, 0.0); /* Allow dynamically sliders to be set, saves notifiers etc. */ if (layout && (layout->flag == FILE_LAYOUT_VER)) { @@ -520,8 +519,7 @@ static void file_ui_area_draw(const bContext *C, ARegion *ar) float col[3]; /* clear */ UI_GetThemeColor3fv(TH_PANEL, col); - glClearColor(col[0], col[1], col[2], 0.0); - glClear(GL_COLOR_BUFFER_BIT); + gpuColorAndClearvf(col, 0.0); /* scrolling here is just annoying, disable it */ ar->v2d.cur.ymax = ar->v2d.cur.ymax - ar->v2d.cur.ymin; |