only enable fog for 3d
This commit is contained in:
		@@ -458,7 +458,7 @@ void finally_draw_command(DeferredCommandDraw command) {
 | 
				
			|||||||
    glDepthRange(command.depth_range_low, command.depth_range_high);
 | 
					    glDepthRange(command.depth_range_low, command.depth_range_high);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* TODO: cache it for constant parameters, which is a common case */
 | 
					    /* TODO: cache it for constant parameters, which is a common case */
 | 
				
			||||||
    if (fabsf(0.0f - ctx.game_copy.fog_density) >= 0.00001f) {
 | 
					    if (command.pipeline == PIPELINE_SPACE && fabsf(0.0f - ctx.game_copy.fog_density) >= 0.00001f) {
 | 
				
			||||||
        glEnable(GL_FOG);
 | 
					        glEnable(GL_FOG);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /* clamp to valid range */
 | 
					        /* clamp to valid range */
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user