can't test this so guessing this is caused by face culling.
unsigned int *dr, *drm;
struct ImBuf *buf, *bufmask;
int a;
+ GLboolean is_cull;
/* method in use for face selecting too */
if(vc->obedit==NULL) {
glDisable(GL_DEPTH_TEST);
glColor3ub(0, 0, 0);
+
+ /* some opengl drivers have problems with draw direction */
+ glGetBooleanv(GL_CULL_FACE, &is_cull);
+ if(is_cull) glDisable(GL_CULL_FACE);
/* yah, opengl doesn't do concave... tsk! */
ED_region_pixelspace(vc->ar);
}
IMB_freeImBuf(buf);
IMB_freeImBuf(bufmask);
+
+ if(is_cull) glEnable(GL_CULL_FACE);
+
return 1;
}