Commit 4cc75b55 authored by Jan Möbius's avatar Jan Möbius
Browse files

Merge branch 'RenderObjects_DepthRange' into 'master'

fix depth-range initialization of render objects

Depth range is not properly set up in the current version. #18 

See merge request !38
parents a171e118 3ba8782c
Pipeline #195 passed with stage
......@@ -103,9 +103,7 @@ void RenderObject::initFromState( GLState* _glState )
_glState->getBlendFunc(&blendSrc, &blendDest);
GLclampd zn, zf;
_glState->getDepthRange(&zn, &zf);
depthRange = Vec2f(zn, zf);
depthFunc = _glState->depthFunc();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment