[Bf-blender-cvs] [1c01811cce0] blender2.8: OpenGL core: add some missing gpuBegin to allow clay with no UI

Dalai Felinto noreply at git.blender.org
Thu Apr 13 19:19:36 CEST 2017


Commit: 1c01811cce00b799ee94aad24083ddf3954a5829
Author: Dalai Felinto
Date:   Thu Apr 13 18:49:16 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB1c01811cce00b799ee94aad24083ddf3954a5829

OpenGL core: add some missing gpuBegin to allow clay with no UI

===================================================================

M	source/blender/editors/screen/area.c
M	source/blender/windowmanager/intern/wm_subwindow.c

===================================================================

diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index 599daef6661..522b1f6cb21 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -451,6 +451,7 @@ static void region_draw_azones(ScrArea *sa, ARegion *ar)
 	glEnable(GL_BLEND);
 	glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
 
+	gpuMatrixBegin2D();
 	gpuPushMatrix();
 	gpuTranslate2f(-ar->winrct.xmin, -ar->winrct.ymin);
 	
diff --git a/source/blender/windowmanager/intern/wm_subwindow.c b/source/blender/windowmanager/intern/wm_subwindow.c
index d73aa107cab..6bb84e18855 100644
--- a/source/blender/windowmanager/intern/wm_subwindow.c
+++ b/source/blender/windowmanager/intern/wm_subwindow.c
@@ -338,6 +338,7 @@ void wmOrtho2(float x1, float x2, float y1, float y2)
 	if (x1 == x2) x2 += 1.0f;
 	if (y1 == y2) y2 += 1.0f;
 
+	gpuMatrixBegin3D();
 	gpuOrtho(x1, x2, y1, y2, -100, 100);
 }




More information about the Bf-blender-cvs mailing list