Commit 821575ff authored by hybrid's avatar hybrid

Enable point and line smoothing also without AntiAlias enabled.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2569 dfc29bdd-3216-0410-991c-e03cc46cb475
parent c9431402
...@@ -2306,12 +2306,15 @@ void COpenGLDriver::setBasicRenderStates(const SMaterial& material, const SMater ...@@ -2306,12 +2306,15 @@ void COpenGLDriver::setBasicRenderStates(const SMaterial& material, const SMater
else else
glDisable(GL_MULTISAMPLE_ARB); glDisable(GL_MULTISAMPLE_ARB);
} }
if (AntiAlias >= 2) if ((material.AntiAliasing & EAAM_LINE_SMOOTH) != (lastmaterial.AntiAliasing & EAAM_LINE_SMOOTH))
{ {
if (material.AntiAliasing & EAAM_LINE_SMOOTH) if (material.AntiAliasing & EAAM_LINE_SMOOTH)
glEnable(GL_LINE_SMOOTH); glEnable(GL_LINE_SMOOTH);
else if (lastmaterial.AntiAliasing & EAAM_LINE_SMOOTH) else if (lastmaterial.AntiAliasing & EAAM_LINE_SMOOTH)
glDisable(GL_LINE_SMOOTH); glDisable(GL_LINE_SMOOTH);
}
if ((material.AntiAliasing & EAAM_POINT_SMOOTH) != (lastmaterial.AntiAliasing & EAAM_POINT_SMOOTH))
{
if (material.AntiAliasing & EAAM_POINT_SMOOTH) if (material.AntiAliasing & EAAM_POINT_SMOOTH)
// often in software, and thus very slow // often in software, and thus very slow
glEnable(GL_POINT_SMOOTH); glEnable(GL_POINT_SMOOTH);
......
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