提交 234973bd 编写于 作者: M Mugen87

WebGLRenderer: Ensure buffers are not overwritten by onAfterRender().

上级 20378c58
......@@ -1205,6 +1205,10 @@ function WebGLRenderer( parameters ) {
//
scene.onAfterRender( _this, scene, camera );
//
if ( _currentRenderTarget !== null ) {
// Generate mipmap if we're using any kind of mipmap filtering
......@@ -1225,8 +1229,6 @@ function WebGLRenderer( parameters ) {
state.setPolygonOffset( false );
scene.onAfterRender( _this, scene, camera );
if ( vr.enabled ) {
vr.submitFrame();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册