Bug fix #2220
Another fix related to improved preview drawing (shade context buttons), it didn't update glViewPort and glScissor correctly, causing the buttons next to the preview-rect not to be offset win the window matrix anymore.
This commit is contained in:
@@ -277,7 +277,9 @@ static void end_previewrect(void)
|
||||
|
||||
glPixelZoom(1.0, 1.0);
|
||||
|
||||
areawinset(curarea->win); // restore viewport / scissor
|
||||
// restore viewport / scissor which was set by glaDefine2DArea
|
||||
glViewport(curarea->winrct.xmin, curarea->winrct.ymin, curarea->winx, curarea->winy);
|
||||
glScissor(curarea->winrct.xmin, curarea->winrct.ymin, curarea->winx, curarea->winy);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user