Skip to content

Commit

Permalink
fixed ASAN error while compiling .fp files
Browse files Browse the repository at this point in the history
Bug: skia:
Change-Id: I7242986661c42c43616f42e1dfe01266d10109a3
Reviewed-on: https://skia-review.googlesource.com/150916
Auto-Submit: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
  • Loading branch information
Ethan Nicholas authored and Skia Commit-Bot committed Sep 4, 2018
1 parent cff3fd8 commit a45e1a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/sksl/SkSLGLSLCodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,6 @@ void GLSLCodeGenerator::writeInputVars() {
}

bool GLSLCodeGenerator::generateCode() {
fProgramKind = fProgram.fKind;
if (fProgramKind != Program::kPipelineStage_Kind) {
this->writeHeader();
}
Expand Down
3 changes: 2 additions & 1 deletion src/sksl/SkSLGLSLCodeGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ class GLSLCodeGenerator : public CodeGenerator {
OutputStream* out)
: INHERITED(program, errors, out)
, fLineEnding("\n")
, fContext(*context) {}
, fContext(*context)
, fProgramKind(program->fKind) {}

bool generateCode() override;

Expand Down

0 comments on commit a45e1a7

Please sign in to comment.