found the issue brekaing the render, i didn't do the Blend enable sync properly

This commit is contained in:
Sam Gateau 2015-03-30 18:04:44 -07:00
parent ee3ec3fe1a
commit ee4b9a483b
2 changed files with 3 additions and 2 deletions

View file

@ -260,11 +260,11 @@ void Environment::renderAtmosphere(Camera& camera, const EnvironmentData& data)
(1.0f / (data.getAtmosphereOuterRadius() - data.getAtmosphereInnerRadius())) / 0.25f);
program->setUniformValue(locations[G_LOCATION], -0.990f);
program->setUniformValue(locations[G2_LOCATION], -0.990f * -0.990f);
glFrontFace(GL_CCW);
glDepthMask(GL_FALSE);
glDisable(GL_DEPTH_TEST);
glDisable(GL_CULL_FACE);
glEnable(GL_BLEND);
DependencyManager::get<GeometryCache>()->renderSphere(1.0f, 100, 50, glm::vec4(1.0f, 1.0f, 1.0f, 1.0f)); //Draw a unit sphere
glDepthMask(GL_TRUE);

View file

@ -108,6 +108,7 @@ void GLBackend::do_setPipeline(Batch& batch, uint32 paramOffset) {
}
}
#define DEBUG_GLSTATE
void GLBackend::updatePipeline() {
#ifdef DEBUG_GLSTATE
if (_pipeline._needStateSync) {