Add NV4097_SET_BACK_POLYGON_MODE

This commit is contained in:
raven02 2014-05-20 21:33:45 +08:00
parent 9209edc15c
commit f67d30571b
3 changed files with 15 additions and 2 deletions

View File

@ -862,7 +862,13 @@ void GLGSRender::ExecCMD()
if(m_set_front_polygon_mode)
{
glPolygonMode(GL_FRONT, m_front_polygon_mode);
checkForGlError("glPolygonMode");
checkForGlError("glPolygonMode(Front)");
}
if (m_set_back_polygon_mode)
{
glPolygonMode(GL_BACK, m_back_polygon_mode);
checkForGlError("glPolygonMode(Back)");
}
Enable(m_depth_test_enable, GL_DEPTH_TEST);

View File

@ -477,6 +477,11 @@ void RSXThread::DoCmd(const u32 fcmd, const u32 cmd, mem32_ptr_t& args, const u3
m_front_polygon_mode = ARGS(0);
break;
case NV4097_SET_BACK_POLYGON_MODE:
m_set_back_polygon_mode = true;
m_back_polygon_mode = ARGS(0);
break;
case NV4097_CLEAR_ZCULL_SURFACE:
{
u32 a0 = ARGS(0);

View File

@ -195,6 +195,8 @@ public:
bool m_set_front_polygon_mode;
u32 m_front_polygon_mode;
bool m_set_back_polygon_mode;
u32 m_back_polygon_mode;
u32 m_clear_surface_mask;
u32 m_clear_surface_z;