mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 17:11:23 +00:00
Merge pull request #1037 from raven02/patch-8
Disable glDepthBoundsEXT for Intel HD graphics
This commit is contained in:
commit
903cb8d7e5
@ -1447,7 +1447,9 @@ void GLGSRender::OnInit()
|
||||
void GLGSRender::OnInitThread()
|
||||
{
|
||||
m_context = m_frame->GetNewContext();
|
||||
|
||||
|
||||
is_intel_vendor = strstr((const char*)glGetString(GL_VENDOR), "Intel");
|
||||
|
||||
m_frame->SetCurrent(m_context);
|
||||
|
||||
InitProcTable();
|
||||
@ -1750,7 +1752,6 @@ void GLGSRender::ExecCMD()
|
||||
|
||||
Enable(m_set_depth_test, GL_DEPTH_TEST);
|
||||
Enable(m_set_alpha_test, GL_ALPHA_TEST);
|
||||
Enable(m_set_depth_bounds_test, GL_DEPTH_BOUNDS_TEST_EXT);
|
||||
Enable(m_set_blend || m_set_blend_mrt1 || m_set_blend_mrt2 || m_set_blend_mrt3, GL_BLEND);
|
||||
Enable(m_set_scissor_horizontal && m_set_scissor_vertical, GL_SCISSOR_TEST);
|
||||
Enable(m_set_logic_op, GL_LOGIC_OP);
|
||||
@ -1768,6 +1769,11 @@ void GLGSRender::ExecCMD()
|
||||
Enable(m_set_line_stipple, GL_LINE_STIPPLE);
|
||||
Enable(m_set_polygon_stipple, GL_POLYGON_STIPPLE);
|
||||
|
||||
if (!is_intel_vendor)
|
||||
{
|
||||
Enable(m_set_depth_bounds_test, GL_DEPTH_BOUNDS_TEST_EXT);
|
||||
}
|
||||
|
||||
if (m_set_clip_plane)
|
||||
{
|
||||
Enable(m_clip_plane_0, GL_CLIP_PLANE0);
|
||||
@ -1899,7 +1905,7 @@ void GLGSRender::ExecCMD()
|
||||
checkForGlError("glDepthFunc");
|
||||
}
|
||||
|
||||
if (m_set_depth_bounds)
|
||||
if (m_set_depth_bounds && !is_intel_vendor)
|
||||
{
|
||||
glDepthBoundsEXT(m_depth_bounds_min, m_depth_bounds_max);
|
||||
checkForGlError("glDepthBounds");
|
||||
|
@ -161,7 +161,8 @@ public:
|
||||
GSFrameBase* m_frame;
|
||||
u32 m_draw_frames;
|
||||
u32 m_skip_frames;
|
||||
|
||||
bool is_intel_vendor;
|
||||
|
||||
GLGSRender();
|
||||
virtual ~GLGSRender();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user