mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-24 18:02:02 +01:00
graphicscommand: Remove unneeded type conversion
This commit is contained in:
parent
74e204d952
commit
b8aa35373a
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user