This commit is contained in:
Hajime Hoshi 2013-10-12 02:51:20 +09:00
parent 86eb30c650
commit f8c0f0faaa
2 changed files with 1 additions and 3 deletions

View File

@ -74,4 +74,3 @@ type RenderTarget interface {
}
type RenderTargetID int

View File

@ -307,8 +307,7 @@ func createFramebuffer(textureID C.GLuint) C.GLuint {
return framebuffer
}
func (context *Context) NewRenderTarget(width, height int) (
graphics.RenderTarget) {
func (context *Context) NewRenderTarget(width, height int) graphics.RenderTarget {
renderTarget := newRenderTarget(width, height)
context.textures[renderTarget.id] = (*Texture)(renderTarget)