aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/vk/GrVkPipelineState.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-09-21 10:53:24 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-21 10:53:24 -0700
commit2eda5b3a65f54105ae3776160373eed5500c515f (patch)
treeace0d82e04790bdbad3f8e061f03e2cfbdea4482 /src/gpu/vk/GrVkPipelineState.cpp
parent7d05f32a1dec990321ffd8165d5f253ab99de3e5 (diff)
Conditionally insert gl_PointSize into shaders.
Diffstat (limited to 'src/gpu/vk/GrVkPipelineState.cpp')
-rw-r--r--src/gpu/vk/GrVkPipelineState.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/vk/GrVkPipelineState.cpp b/src/gpu/vk/GrVkPipelineState.cpp
index 50250a5ead..73ff62ed98 100644
--- a/src/gpu/vk/GrVkPipelineState.cpp
+++ b/src/gpu/vk/GrVkPipelineState.cpp
@@ -487,7 +487,8 @@ bool GrVkPipelineState::Desc::Build(Desc* desc,
const GrPipeline& pipeline,
GrPrimitiveType primitiveType,
const GrGLSLCaps& caps) {
- if (!INHERITED::Build(desc, primProc, pipeline, caps)) {
+ if (!INHERITED::Build(desc, primProc, primitiveType == kPoints_GrPrimitiveType, pipeline,
+ caps)) {
return false;
}