| Index: tools/VisualBench/VisualBench.cpp
|
| diff --git a/tools/VisualBench/VisualBench.cpp b/tools/VisualBench/VisualBench.cpp
|
| index 39d249197b18ad1ad667bab47d7667d72cc4b85a..9cc2ec1c3bcd5941421c0abfe97eca8bf7064e60 100644
|
| --- a/tools/VisualBench/VisualBench.cpp
|
| +++ b/tools/VisualBench/VisualBench.cpp
|
| @@ -84,8 +84,10 @@ void VisualBench::resetContext() {
|
|
|
| fInterface.reset(GrGLCreateNativeInterface());
|
|
|
| - // TODO use the GLContext creation factories
|
| - fInterface.reset(GrGLInterfaceRemoveNVPR(fInterface));
|
| + // TODO use the GLContext creation factories and also set this all up in configs
|
| + if (!FLAGS_nvpr) {
|
| + fInterface.reset(GrGLInterfaceRemoveNVPR(fInterface));
|
| + }
|
| SkASSERT(fInterface);
|
|
|
| // setup contexts
|
|
|