diff --git a/interface/src/Environment.cpp b/interface/src/Environment.cpp index 4547cacf83..e6fc0184cf 100644 --- a/interface/src/Environment.cpp +++ b/interface/src/Environment.cpp @@ -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()->renderSphere(1.0f, 100, 50, glm::vec4(1.0f, 1.0f, 1.0f, 1.0f)); //Draw a unit sphere glDepthMask(GL_TRUE); diff --git a/libraries/gpu/src/gpu/GLBackendPipeline.cpp b/libraries/gpu/src/gpu/GLBackendPipeline.cpp index 6a66f9aa99..8922d53a6f 100755 --- a/libraries/gpu/src/gpu/GLBackendPipeline.cpp +++ b/libraries/gpu/src/gpu/GLBackendPipeline.cpp @@ -108,6 +108,7 @@ void GLBackend::do_setPipeline(Batch& batch, uint32 paramOffset) { } } +#define DEBUG_GLSTATE void GLBackend::updatePipeline() { #ifdef DEBUG_GLSTATE if (_pipeline._needStateSync) {