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

This commit is contained in:
Dalai Felinto 2017-04-13 18:49:16 +02:00
parent fe559d0659
commit 1c01811cce
Notes: blender-bot 2023-02-14 01:52:41 +01:00
Referenced by commit 532532afc7, Revert "OpenGL core: add some missing gpuBegin to allow clay with no UI"
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -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);
}