From efd019c00e8ae3f1b845ae5b21a8be0fd4a0c13b Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 3 Jun 2016 03:07:55 +0900 Subject: [PATCH] graphics: Remove Texture.Size --- internal/graphics/framebuffer.go | 5 ++--- internal/graphics/texture.go | 4 ---- 2 files changed, 2 insertions(+), 7 deletions(-) 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)))