Skip to content

Commit

Permalink
Fix deprecation version
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Oct 15, 2024
1 parent 40488f0 commit 6c4b978
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/renderers/WebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -860,9 +860,9 @@ class WebGLRenderer {

if ( object.isBatchedMesh ) {

if ( object._multiDrawInstances !== null ) { // @deprecated, r173
if ( object._multiDrawInstances !== null ) { // @deprecated, r170

warnOnce( 'THREE.WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r183. Append to renderMultiDraw arguments and use indirection.' );
warnOnce( 'THREE.WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r180. Append to renderMultiDraw arguments and use indirection.' );

renderer.renderMultiDrawInstances( object._multiDrawStarts, object._multiDrawCounts, object._multiDrawCount, object._multiDrawInstances );

Expand Down
4 changes: 2 additions & 2 deletions src/renderers/webgl-fallback/WebGLBackend.js
Original file line number Diff line number Diff line change
Expand Up @@ -741,9 +741,9 @@ class WebGLBackend extends Backend {

if ( object.isBatchedMesh ) {

if ( object._multiDrawInstances !== null ) { // @deprecated, r173
if ( object._multiDrawInstances !== null ) { // @deprecated, r170

warnOnce( 'THREE.WebGLBackend: renderMultiDrawInstances has been deprecated and will be removed in r183. Append to renderMultiDraw arguments and use indirection.' );
warnOnce( 'THREE.WebGLBackend: renderMultiDrawInstances has been deprecated and will be removed in r180. Append to renderMultiDraw arguments and use indirection.' );

renderer.renderMultiDrawInstances( object._multiDrawStarts, object._multiDrawCounts, object._multiDrawCount, object._multiDrawInstances );

Expand Down
4 changes: 2 additions & 2 deletions src/renderers/webgpu/WebGPUBackend.js
Original file line number Diff line number Diff line change
Expand Up @@ -957,9 +957,9 @@ class WebGPUBackend extends Backend {
const drawCount = object._multiDrawCount;
const drawInstances = object._multiDrawInstances;

if ( object._multiDrawInstances !== null ) { // @deprecated, r173
if ( object._multiDrawInstances !== null ) { // @deprecated, r170

warnOnce( 'THREE.WebGPUBackend: renderMultiDrawInstances has been deprecated and will be removed in r183. Append to renderMultiDraw arguments and use indirection.' );
warnOnce( 'THREE.WebGPUBackend: renderMultiDrawInstances has been deprecated and will be removed in r180. Append to renderMultiDraw arguments and use indirection.' );

Check warning on line 962 in src/renderers/webgpu/WebGPUBackend.js

View workflow job for this annotation

GitHub Actions / Lint testing

'warnOnce' is not defined

}

Expand Down

0 comments on commit 6c4b978

Please sign in to comment.