Skip to content
Snippets Groups Projects
Commit 8964407f authored by Ansgar Philippsen's avatar Ansgar Philippsen
Browse files

fixed broken bg transparency export

parent 2058e022
Branches
Tags
No related merge requests found
......@@ -720,6 +720,7 @@ void GfxObj::Debug(unsigned int flags)
void GfxObj::render_depth_only()
{
glPushAttrib(GL_ALL_ATTRIB_BITS);
glPushClientAttrib(GL_ALL_ATTRIB_BITS);
glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE);
glDisable(GL_LIGHTING);
glDisable(GL_COLOR_MATERIAL);
......@@ -735,6 +736,7 @@ void GfxObj::render_depth_only()
CustomRenderGL(STANDARD_RENDER_PASS);
CustomRenderGL(TRANSPARENT_RENDER_PASS);
glColorMask(GL_TRUE,GL_TRUE,GL_TRUE,GL_TRUE);
glPopClientAttrib();
glPopAttrib();
}
......
......@@ -438,7 +438,8 @@ void Scene::InitGL(bool full)
glClearDepth(1.0);
// background
glClearColor(background_.Red(),background_.Green(),background_.Blue(),background_.Alpha());
//glClearColor(background_.Red(),background_.Green(),background_.Blue(),background_.Alpha());
glClearColor(background_.Red(),background_.Green(),background_.Blue(),0.0);
fog_color_=background_;
// polygon orientation setting
......@@ -582,7 +583,8 @@ void Scene::SetBackground(const Color& c)
background_=c;
bg_mode_=0;
if(gl_init_) {
glClearColor(c.Red(),c.Green(),c.Blue(),c.Alpha());
//glClearColor(c.Red(),c.Green(),c.Blue(),c.Alpha());
glClearColor(c.Red(),c.Green(),c.Blue(),0.0);
SetFogColor(c);
RequestRedraw();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment