diff --git a/src/heck/ShaderPool.ts b/src/heck/ShaderPool.ts index aa67a03..9e3f2e2 100644 --- a/src/heck/ShaderPool.ts +++ b/src/heck/ShaderPool.ts @@ -101,7 +101,9 @@ export class ShaderPool { const users = this.__programUsersMap.get( program )!; if ( !users.has( user ) ) { - throw new Error( 'Attempt to delete an user of the program but the specified user is not an owner' ); + if ( process.env.DEV ) { + console.warn( 'Attempt to delete an user of the program but the specified user is not an owner' ); + } } users.delete( user ); }