diff options
-rw-r--r-- | tools/viewer/Viewer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/viewer/Viewer.cpp b/tools/viewer/Viewer.cpp index 72c2f6cb40..6f01f2df01 100644 --- a/tools/viewer/Viewer.cpp +++ b/tools/viewer/Viewer.cpp @@ -1320,13 +1320,12 @@ void Viewer::updateUIState() { // Instanced rendering state Json::Value instState(Json::objectValue); instState[kName] = kInstancedRenderingStateName; + instState[kValue] = kOFF; + instState[kOptions] = Json::Value(Json::arrayValue); if (ctx) { if (fWindow->getRequestedDisplayParams().fGrContextOptions.fEnableInstancedRendering) { instState[kValue] = kON; - } else { - instState[kValue] = kOFF; } - instState[kOptions] = Json::Value(Json::arrayValue); instState[kOptions].append(kOFF); instState[kOptions].append(kON); } |