File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -665,6 +665,8 @@ class RendererGL extends Renderer {
665
665
if ( ! glBuffers ) return ;
666
666
667
667
if ( glBuffers . indexBuffer ) {
668
+ this . _bindBuffer ( glBuffers . indexBuffer , gl . ELEMENT_ARRAY_BUFFER ) ;
669
+
668
670
// If this model is using a Uint32Array we need to ensure the
669
671
// OES_element_index_uint WebGL extension is enabled.
670
672
if (
@@ -2037,9 +2039,8 @@ class RendererGL extends Renderer {
2037
2039
this . shader ( this . states . diffusedShader ) ;
2038
2040
this . states . diffusedShader . setUniform ( 'environmentMap' , input ) ;
2039
2041
this . states . doStroke = false ;
2040
- this . rectMode ( constants . CENTER ) ;
2041
2042
this . noLights ( ) ;
2042
- this . rect ( 0 , 0 , width , height ) ;
2043
+ this . plane ( width , height ) ;
2043
2044
} ) ;
2044
2045
this . diffusedTextures . set ( input , newFramebuffer ) ;
2045
2046
return newFramebuffer ;
You can’t perform that action at this time.
0 commit comments