forked from bartvdbraak/blender
bugfix: [#29486] 2D filters make scene disappear when wire material used - patch by Juha Mäki-Kanto
when last drawn material is wire it will not set back to face drawing.
This commit is contained in:
parent
74a1123059
commit
bfdaa3b187
@ -431,6 +431,8 @@ void RAS_2DFilterManager::RenderFilters(RAS_ICanvas* canvas)
|
||||
glViewport(0,0, texturewidth, textureheight);
|
||||
|
||||
glDisable(GL_DEPTH_TEST);
|
||||
// in case the previous material was wire
|
||||
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
|
||||
// if the last rendered face had alpha add it would messes with the color of the plane we apply 2DFilter to
|
||||
glDisable(GL_BLEND);
|
||||
glPushMatrix(); //GL_MODELVIEW
|
||||
|
Loading…
Reference in New Issue
Block a user