graphicsdriver/opengl: Remove isTexture on desktops

This commit is contained in:
Hajime Hoshi 2020-05-30 20:56:13 +09:00
parent 2bdef2e8c4
commit e25a6f4d46

View File

@ -228,12 +228,7 @@ func (c *context) deleteTexture(t textureNative) {
} }
func (c *context) isTexture(t textureNative) bool { func (c *context) isTexture(t textureNative) bool {
r := false panic("opengl: isTexture is not implemented")
_ = c.t.Call(func() error {
r = gl.IsTexture(uint32(t))
return nil
})
return r
} }
func (c *context) newFramebuffer(texture textureNative) (framebufferNative, error) { func (c *context) newFramebuffer(texture textureNative) (framebufferNative, error) {