diff --git a/internal/graphics/framebuffer.go b/internal/graphics/framebuffer.go index ffe0555a4..ca6fd1e92 100644 --- a/internal/graphics/framebuffer.go +++ b/internal/graphics/framebuffer.go @@ -56,11 +56,10 @@ func NewFramebufferFromTexture(c *opengl.Context, texture *Texture) (*Framebuffe if err != nil { return nil, err } - w, h := texture.Size() return &Framebuffer{ native: f, - width: w, - height: h, + width: texture.width, + height: texture.height, }, nil } diff --git a/internal/graphics/texture.go b/internal/graphics/texture.go index 84299f191..8fb4ae42e 100644 --- a/internal/graphics/texture.go +++ b/internal/graphics/texture.go @@ -50,10 +50,6 @@ type Texture struct { height int } -func (t *Texture) Size() (width, height int) { - return t.width, t.height -} - func NewTexture(c *opengl.Context, width, height int, filter opengl.Filter) (*Texture, error) { w := int(NextPowerOf2Int32(int32(width))) h := int(NextPowerOf2Int32(int32(height)))