block->fLiveCount = 0;
block->fFreeSize = size;
block->fCurrPtr = reinterpret_cast<intptr_t>(block) + kHeaderSize;
- block->fPrevPtr = NULL;
+ block->fPrevPtr = 0; // gcc warns on assigning NULL to an intptr_t.
return block;
}
outAppend->append(GrGLSLZerosVecf(4));
return kZeros_GrSLConstantVec;
} else {
- outAppend->appendf(GrGLSLOnesVecf(4));
+ outAppend->append(GrGLSLOnesVecf(4));
return kOnes_GrSLConstantVec;
}
} else if (!has0) {
, fFSInputs(kVarsPerBlock)
, fFSOutputs(kMaxFSOutputs)
, fUsesGS(false)
- , fTexCoordVaryingType(kVoid_GrSLType)
, fContext(ctx)
, fUniformManager(uniformManager)
- , fCurrentStage(kNonStageIdx) {
+ , fCurrentStage(kNonStageIdx)
+ , fTexCoordVaryingType(kVoid_GrSLType) {
}
void GrGLShaderBuilder::computeSwizzle(uint32_t configFlags) {