Browse Source
Merge pull request #2033 from ReinUsesLisp/fixup-clip-warning
gl_rasterizer: Silent unsafe mix warning
pull/15/merge
bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/video_core/renderer_opengl/gl_rasterizer.cpp
|
|
|
@ -365,7 +365,7 @@ void RasterizerOpenGL::SetupShaders(GLenum primitive_mode) { |
|
|
|
// (sometimes it's half the screen, sometimes three quarters). To avoid this, enable the
|
|
|
|
// clip distances only when it's written by a shader stage.
|
|
|
|
for (std::size_t i = 0; i < Maxwell::NumClipDistances; ++i) { |
|
|
|
clip_distances[i] |= shader->GetShaderEntries().clip_distances[i]; |
|
|
|
clip_distances[i] = clip_distances[i] || shader->GetShaderEntries().clip_distances[i]; |
|
|
|
} |
|
|
|
|
|
|
|
// When VertexA is enabled, we have dual vertex shaders
|
|
|
|
|