Fix edit-mesh draw not disabling stipple

Caused problem w/ basic-shader
This commit is contained in:
Campbell Barton 2016-06-08 21:35:02 +10:00
parent 6307e823ca
commit 5e063ce6c9
1 changed files with 4 additions and 0 deletions

View File

@ -1181,6 +1181,10 @@ static void emDM_drawMappedFaces(
/* if non zero we know a face was rendered */
if (poly_prev != GL_ZERO) glEnd();
if (draw_option_prev == DM_DRAW_OPTION_STIPPLE) {
GPU_basic_shader_bind(GPU_SHADER_USE_COLOR);
}
}
static void bmdm_get_tri_uv(BMLoop *ltri[3], MLoopUV *luv[3], const int cd_loop_uv_offset)