From f76171c79d2f24801bfa93c8d2201941bffef599 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 27 Nov 2013 01:46:53 +0900 Subject: [PATCH] Remove comments --- graphics/opengl/context.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/graphics/opengl/context.go b/graphics/opengl/context.go index 6b975ee5d..53027d17d 100644 --- a/graphics/opengl/context.go +++ b/graphics/opengl/context.go @@ -9,10 +9,8 @@ import ( "github.com/hajimehoshi/go-ebiten/graphics" "github.com/hajimehoshi/go-ebiten/graphics/matrix" "github.com/hajimehoshi/go-ebiten/graphics/opengl/offscreen" - // "github.com/hajimehoshi/go-ebiten/graphics/opengl/shader" "github.com/hajimehoshi/go-ebiten/graphics/opengl/texture" grendertarget "github.com/hajimehoshi/go-ebiten/graphics/rendertarget" - // gtexture "github.com/hajimehoshi/go-ebiten/graphics/texture" "image" "math" ) @@ -23,9 +21,7 @@ type Context struct { screenHeight int screenScale int ids *ids - //mainFramebufferTexture *grendertarget.RenderTarget - //projectionMatrix [16]float32 - offscreen *offscreen.Offscreen + offscreen *offscreen.Offscreen } func newContext(screenWidth, screenHeight, screenScale int) *Context { @@ -96,15 +92,10 @@ func (context *Context) SetOffscreen(renderTargetId graphics.RenderTargetId) { } func (context *Context) setOffscreen(rt *grendertarget.RenderTarget) { - /*C.glFlush() - - rt.SetAsOffscreen(context.offscreen) - context.projectionMatrix = setter.projectionMatrix*/ context.offscreen.Set(rt) } func (context *Context) setMainFramebufferOffscreen() { - //context.setOffscreen(context.mainFramebufferTexture) context.offscreen.SetMainFramebuffer() }