Browse Source

Force redraw when HDR auto exposure is enable in all frames, fixes #10784

Juan Linietsky 8 years ago
parent
commit
8047127bc6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/gles3/rasterizer_scene_gles3.cpp

+ 2 - 0
drivers/gles3/rasterizer_scene_gles3.cpp

@@ -3739,6 +3739,8 @@ void RasterizerSceneGLES3::_post_process(Environment *env, const CameraMatrix &p
 		SWAP(exposure_shrink[exposure_shrink.size() - 1].color, storage->frame.current_rt->exposure.color);
 		SWAP(exposure_shrink[exposure_shrink.size() - 1].color, storage->frame.current_rt->exposure.color);
 
 
 		glViewport(0, 0, storage->frame.current_rt->width, storage->frame.current_rt->height);
 		glViewport(0, 0, storage->frame.current_rt->width, storage->frame.current_rt->height);
+
+		VisualServerRaster::redraw_request(); //if using auto exposure, redraw must happen
 	}
 	}
 
 
 	int max_glow_level = -1;
 	int max_glow_level = -1;