From 329a3b4c7daf23b1c44c8fa59086882e542e7a6e Mon Sep 17 00:00:00 2001 From: Sam Gateau Date: Wed, 3 Jun 2015 23:29:32 -0700 Subject: [PATCH] force the worldbox to use the simple program which should fix its rendering --- interface/src/Application.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 573ac160ff..c8f7cedf6c 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -3190,12 +3190,15 @@ namespace render { template <> void payloadRender(const WorldBoxRenderData::Pointer& stuff, RenderArgs* args) { if (args->_renderMode != CAMERA_MODE_MIRROR && Menu::getInstance()->isOptionChecked(MenuOption::Stats)) { PerformanceTimer perfTimer("worldBox"); + + DependencyManager::get()->bindSimpleProgram((*args->_batch)); + renderWorldBox(args); // FIXME: there's currently a bug in the new render engine, if this origin dot is rendered out of view it will // screw up the state of textures on models so they all end up rendering in the incorrect tint/color/texture float originSphereRadius = 0.05f; - DependencyManager::get()->renderSphere(originSphereRadius, 15, 15, glm::vec4(1.0f, 0.0f, 0.0f, 1.0f)); + DependencyManager::get()->renderSphere((*args->_batch), originSphereRadius, 15, 15, glm::vec4(1.0f, 0.0f, 0.0f, 1.0f)); } } }