Cosmetics.

This commit is contained in:
Jules Blok
2016-08-12 13:55:35 +02:00
parent 959d1879e5
commit 8c1c7fc2da
4 changed files with 12 additions and 12 deletions

View File

@ -482,10 +482,7 @@ void Renderer::SetViewport()
width = (x + width <= GetTargetWidth()) ? width : (GetTargetWidth() - x);
height = (y + height <= GetTargetHeight()) ? height : (GetTargetHeight() - y);
D3D12_VIEWPORT vp = {
x, y, width, height,
D3D12_MIN_DEPTH,
16777215.0f / 16777216.0f };
D3D12_VIEWPORT vp = {x, y, width, height, D3D12_MIN_DEPTH, 16777215.0f / 16777216.0f};
D3D::current_command_list->RSSetViewports(1, &vp);
}

View File

@ -482,8 +482,9 @@ Renderer::Renderer()
GLExtensions::Supports("GL_ARB_shading_language_420pack");
// Clip distance support is useless without a method to clamp the depth range
g_Config.backend_info.bSupportsDepthClamp = GLExtensions::Supports("GL_ARB_depth_clamp") &&
!DriverDetails::HasBug(DriverDetails::BUG_BROKENCLIPDISTANCE);
g_Config.backend_info.bSupportsDepthClamp =
GLExtensions::Supports("GL_ARB_depth_clamp") &&
!DriverDetails::HasBug(DriverDetails::BUG_BROKENCLIPDISTANCE);
g_ogl_config.bSupportsGLSLCache = GLExtensions::Supports("GL_ARB_get_program_binary");
g_ogl_config.bSupportsGLPinnedMemory = GLExtensions::Supports("GL_AMD_pinned_memory");
@ -524,7 +525,8 @@ Renderer::Renderer()
g_ogl_config.bSupportsGLSLCache = true;
g_ogl_config.bSupportsGLSync = true;
// TODO: Implement support for GL_EXT_clip_cull_distance when there is an extension for depth clamping.
// TODO: Implement support for GL_EXT_clip_cull_distance when there is an extension for
// depth clamping.
g_Config.backend_info.bSupportsDepthClamp = false;
if (strstr(g_ogl_config.glsl_version, "3.0"))