restore code to fix box entites not rendering

boxes wouldn't render when in an otherwise empty domain
This commit is contained in:
Andrew Meadows 2015-05-28 12:22:17 -07:00
parent b7e3461e1a
commit b90d35c0c0

View file

@ -93,16 +93,16 @@ void DeferredLightingEffect::init(AbstractViewStateInterface* viewState) {
}
void DeferredLightingEffect::bindSimpleProgram() {
// DependencyManager::get<TextureCache>()->setPrimaryDrawBuffers(true, true, true);
DependencyManager::get<TextureCache>()->setPrimaryDrawBuffers(true, true, true);
_simpleProgram.bind();
_simpleProgram.setUniformValue(_glowIntensityLocation, DependencyManager::get<GlowEffect>()->getIntensity());
// glDisable(GL_BLEND);
glDisable(GL_BLEND);
}
void DeferredLightingEffect::releaseSimpleProgram() {
// glEnable(GL_BLEND);
glEnable(GL_BLEND);
_simpleProgram.release();
// DependencyManager::get<TextureCache>()->setPrimaryDrawBuffers(true, false, false);
DependencyManager::get<TextureCache>()->setPrimaryDrawBuffers(true, false, false);
}
void DeferredLightingEffect::renderSolidSphere(float radius, int slices, int stacks, const glm::vec4& color) {