Regresion fix : restore point size functionality

This commit is contained in:
raven02 2014-06-15 00:54:09 +08:00
parent f7c0c6fd34
commit 5007d62e27
3 changed files with 14 additions and 2 deletions

View file

@ -843,7 +843,7 @@ void GLGSRender::ExecCMD()
Enable(m_set_poly_offset_fill, GL_POLYGON_OFFSET_FILL);
Enable(m_set_poly_offset_line, GL_POLYGON_OFFSET_LINE);
Enable(m_set_poly_offset_point, GL_POLYGON_OFFSET_POINT);
Enable(m_set_restart_index, GL_PRIMITIVE_RESTART); // Requires OpenGL 3.1+
Enable(m_set_restart_index, GL_PRIMITIVE_RESTART);
if(m_set_clip_plane)
{
@ -872,6 +872,12 @@ void GLGSRender::ExecCMD()
checkForGlError("glPolygonMode(Back)");
}
if (m_set_point_size)
{
glPointSize(m_point_size);
checkForGlError("glPointSize");
}
if (m_set_poly_offset_mode)
{
glPolygonOffset(m_poly_offset_scale_factor, m_poly_offset_bias);