Skip to content

Commit

Permalink
Assert that no FP needs local coords when the variable is void
Browse files Browse the repository at this point in the history
Change-Id: Ie7c687649313d047639ed96df765d16d59b58090
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/341796
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
  • Loading branch information
csmartdalton86 authored and Skia Commit-Bot committed Dec 8, 2020
1 parent 7dc984a commit 759ff5b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gpu/glsl/GrGLSLGeometryProcessor.cpp
Expand Up @@ -23,6 +23,9 @@ void GrGLSLGeometryProcessor::emitCode(EmitArgs& args) {
if (gpArgs.fLocalCoordVar.getType() != kVoid_GrSLType) {
this->collectTransforms(args.fVertBuilder, args.fVaryingHandler, args.fUniformHandler,
gpArgs.fLocalCoordVar, args.fFPCoordTransformHandler);
} else {
// Make sure no FPs needed the local coord variable.
SkASSERT(!*args.fFPCoordTransformHandler);
}

if (args.fGP.willUseTessellationShaders()) {
Expand Down

0 comments on commit 759ff5b

Please sign in to comment.