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 }