From b8aa35373aeb0fc510a7e1540fb12b94c9b220ae Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 31 Oct 2018 10:54:45 +0900 Subject: [PATCH] graphicscommand: Remove unneeded type conversion --- internal/graphicscommand/framebuffer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/graphicscommand/framebuffer.go b/internal/graphicscommand/framebuffer.go index 8814737d1..eca24cfcf 100644 --- a/internal/graphicscommand/framebuffer.go +++ b/internal/graphicscommand/framebuffer.go @@ -28,7 +28,7 @@ type framebuffer struct { // newFramebufferFromTexture creates a framebuffer from the given texture. func newFramebufferFromTexture(texture *texture, width, height int) (*framebuffer, error) { - native, err := opengl.GetContext().NewFramebuffer(opengl.Texture(texture.native)) + native, err := opengl.GetContext().NewFramebuffer(texture.native) if err != nil { return nil, err }