From 1c01811cce00b799ee94aad24083ddf3954a5829 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Thu, 13 Apr 2017 18:49:16 +0200 Subject: OpenGL core: add some missing gpuBegin to allow clay with no UI --- source/blender/windowmanager/intern/wm_subwindow.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/windowmanager/intern/wm_subwindow.c') 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); } -- cgit v1.2.3