File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -131,9 +131,10 @@ class TransformFeedback {
131
131
var device = this . device ;
132
132
133
133
// #ifdef DEBUG
134
- this . device . pushMarker ( "TransformFeedback" ) ;
134
+ device . pushMarker ( "TransformFeedback" ) ;
135
135
// #endif
136
136
137
+ const oldRt = device . getRenderTarget ( ) ;
137
138
device . setRenderTarget ( null ) ;
138
139
device . updateBegin ( ) ;
139
140
device . setVertexBuffer ( this . _inputBuffer , 0 ) ;
@@ -149,9 +150,10 @@ class TransformFeedback {
149
150
device . setTransformFeedbackBuffer ( null ) ;
150
151
device . setRaster ( true ) ;
151
152
device . updateEnd ( ) ;
153
+ device . setRenderTarget ( oldRt ) ;
152
154
153
155
// #ifdef DEBUG
154
- this . device . popMarker ( ) ;
156
+ device . popMarker ( ) ;
155
157
// #endif
156
158
157
159
// swap buffers
Original file line number Diff line number Diff line change @@ -3039,8 +3039,8 @@ class ForwardRenderer {
3039
3039
camera = layer . cameras [ cameraPass ] ;
3040
3040
3041
3041
// #ifdef DEBUG
3042
- this . device . pushMarker ( layer . name ) ;
3043
3042
this . device . pushMarker ( camera ? camera . entity . name : "noname" ) ;
3043
+ this . device . pushMarker ( layer . name ) ;
3044
3044
// #endif
3045
3045
3046
3046
// #ifdef PROFILER
Original file line number Diff line number Diff line change @@ -517,7 +517,7 @@ class LayerComposition extends EventHandler {
517
517
518
518
// #ifdef DEBUG
519
519
if ( this . logRenderActions ) {
520
- console . log ( "Render Actions" ) ;
520
+ console . log ( "Render Actions for composition: " + this . name ) ;
521
521
for ( let i = 0 ; i < this . _renderActions . length ; i ++ ) {
522
522
const ra = this . _renderActions [ i ] ;
523
523
const layerIndex = ra . layerIndex ;
You can’t perform that action at this time.
0 commit comments