graphicscommand: Remove unneeded type conversion

This commit is contained in:
Hajime Hoshi 2018-10-31 10:54:45 +09:00
parent 74e204d952
commit b8aa35373a

View File

@ -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
}