OpenGL: remove last uses of fdrawbox
Part of T49043
This commit is contained in:
@@ -482,9 +482,6 @@ void ui_draw_but_IMAGE(ARegion *UNUSED(ar), uiBut *but, uiWidgetColors *UNUSED(w
|
||||
|
||||
/* scissor doesn't seem to be doing the right thing...? */
|
||||
#if 0
|
||||
//glColor4f(1.0, 0.f, 0.f, 1.f);
|
||||
//fdrawbox(rect->xmin, rect->ymin, rect->xmax, rect->ymax)
|
||||
|
||||
/* prevent drawing outside widget area */
|
||||
GLint scissor[4];
|
||||
glGetIntegerv(GL_SCISSOR_BOX, scissor);
|
||||
|
||||
@@ -711,8 +711,11 @@ static void node_draw_preview(bNodePreview *preview, rctf *prv)
|
||||
|
||||
glDisable(GL_BLEND);
|
||||
|
||||
UI_ThemeColorShadeAlpha(TH_BACK, -15, +100);
|
||||
fdrawbox(draw_rect.xmin, draw_rect.ymin, draw_rect.xmax, draw_rect.ymax);
|
||||
unsigned int pos = add_attrib(immVertexFormat(), "pos", COMP_F32, 2, KEEP_FLOAT);
|
||||
immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR);
|
||||
immUniformThemeColorShadeAlpha(TH_BACK, -15, +100);
|
||||
imm_draw_line_box(pos, draw_rect.xmin, draw_rect.ymin, draw_rect.xmax, draw_rect.ymax);
|
||||
immUnbindProgram();
|
||||
}
|
||||
|
||||
/* common handle function for operator buttons that need to select the node first */
|
||||
|
||||
Reference in New Issue
Block a user