Skip to content

Commit

Permalink
Chore: Remove DepthResource (#9344)
Browse files Browse the repository at this point in the history
  • Loading branch information
dev7355608 committed Apr 24, 2023
1 parent f0fac33 commit 5591e46
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 67 deletions.
4 changes: 1 addition & 3 deletions packages/core/src/framebuffer/Framebuffer.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { FORMATS, MIPMAP_MODES, MSAA_QUALITY, SCALE_MODES, TYPES } from '@pixi/constants';
import { Runner } from '@pixi/runner';
import { BaseTexture } from '../textures/BaseTexture';
import { DepthResource } from '../textures/resources/DepthResource';

import type { GLFramebuffer } from './GLFramebuffer';

Expand Down Expand Up @@ -109,8 +108,7 @@ export class Framebuffer
*/
addDepthTexture(texture?: BaseTexture): this
{
/* eslint-disable max-len */
this.depthTexture = texture || new BaseTexture(new DepthResource(null, { width: this.width, height: this.height }), {
this.depthTexture = texture || new BaseTexture(null, {
scaleMode: SCALE_MODES.NEAREST,
resolution: 1,
width: this.width,
Expand Down
64 changes: 0 additions & 64 deletions packages/core/src/textures/resources/DepthResource.ts

This file was deleted.

0 comments on commit 5591e46

Please sign in to comment.