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:
Diffstat (limited to 'source/blender/editors/space_image/space_image.c')
-rw-r--r--source/blender/editors/space_image/space_image.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c
index ea696772957..7eff00d3882 100644
--- a/source/blender/editors/space_image/space_image.c
+++ b/source/blender/editors/space_image/space_image.c
@@ -59,7 +59,7 @@
#include "ED_screen.h"
#include "ED_uvedit.h"
-#include "BIF_gl.h"
+#include "GPU_compatibility.h"
#include "RNA_access.h"
@@ -642,8 +642,7 @@ static void image_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);
/* put scene context variable in iuser */
sima->iuser.scene = scene;