| Index: tests/GLProgramsTest.cpp
|
| diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp
|
| index a7482120b4f453d20e3ee117bdfbd01bed1de76b..7fc084fb1ff0bde390c7dc6b15197a039b15c56e 100644
|
| --- a/tests/GLProgramsTest.cpp
|
| +++ b/tests/GLProgramsTest.cpp
|
| @@ -128,9 +128,11 @@ bool GrGLProgramDesc::setRandom(SkRandom* random,
|
| header->fCoverageAttributeIndex = (header->fCoverageInput == kAttribute_ColorInput) ?
|
| currAttribIndex++ :
|
| -1;
|
| -
|
| + bool useGS = random->nextBool();
|
| #if GR_GL_EXPERIMENTAL_GS
|
| - header->fExperimentalGS = gpu->caps()->geometryShaderSupport() && random->nextBool();
|
| + header->fExperimentalGS = gpu->caps()->geometryShaderSupport() && useGS;
|
| +#else
|
| + (void) useGS;
|
| #endif
|
|
|
| header->fLocalCoordAttributeIndex = useLocalCoords ? currAttribIndex++ : -1;
|
|
|