Enabled MSAA

This commit is contained in:
parax0
2016-08-30 19:05:28 -06:00
parent 4fd3e9c437
commit 1de2691f33
8 changed files with 146 additions and 88 deletions

View File

@@ -32,12 +32,13 @@ void CBasicViewport::initializeGL()
CGraphics::Initialize();
// Setting various GL flags
glEnable(GL_PRIMITIVE_RESTART);
glPrimitiveRestartIndex(0xFFFF);
glDepthFunc(GL_LEQUAL);
glEnable(GL_BLEND);
glEnable(GL_POLYGON_OFFSET_FILL);
glEnable(GL_MULTISAMPLE);
glEnable(GL_PRIMITIVE_RESTART);
glPrimitiveRestartIndex(0xFFFF);
glPolygonOffset(1.f, 5.f);
glDepthFunc(GL_LEQUAL);
// Clear cached material
CMaterial::KillCachedMaterial();