Fix T39524: Backface culling is always on in Textured view in BI.

Special case I did not think about in own previous culling fix (rB0f95149a7849).
This commit is contained in:
Bastien Montagne 2014-03-31 20:05:09 +02:00
parent c682fe49f4
commit f1186cb113

@ -255,9 +255,9 @@ static bool set_draw_settings_cached(int clearcache, MTFace *texface, Material *
/* convert number of lights into boolean */
if (gtexdraw.is_lit) lit = 1;
backculled = gtexdraw.use_backface_culling;
if (ma) {
if (ma->mode & MA_SHLESS) lit = 0;
backculled = gtexdraw.use_backface_culling;
if (gtexdraw.use_game_mat) {
backculled = backculled || (ma->game.flag & GEMAT_BACKCULL);
alphablend = ma->game.alpha_blend;