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:
@@ -431,6 +431,8 @@ void RAS_2DFilterManager::RenderFilters(RAS_ICanvas* canvas)
|
|||||||
glViewport(0,0, texturewidth, textureheight);
|
glViewport(0,0, texturewidth, textureheight);
|
||||||
|
|
||||||
glDisable(GL_DEPTH_TEST);
|
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
|
// if the last rendered face had alpha add it would messes with the color of the plane we apply 2DFilter to
|
||||||
glDisable(GL_BLEND);
|
glDisable(GL_BLEND);
|
||||||
glPushMatrix(); //GL_MODELVIEW
|
glPushMatrix(); //GL_MODELVIEW
|
||||||
|
Reference in New Issue
Block a user