From eb0431f117386f6e71393d488e657fe2f54470b2 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 18 Feb 2015 23:35:39 +0900 Subject: [PATCH] opengl: Remove Flush() --- internal/graphics/internal/opengl/context.go | 4 ---- internal/graphics/internal/opengl/context_js.go | 5 ----- 2 files changed, 9 deletions(-) diff --git a/internal/graphics/internal/opengl/context.go b/internal/graphics/internal/opengl/context.go index 9ba6055cf..11994e02b 100644 --- a/internal/graphics/internal/opengl/context.go +++ b/internal/graphics/internal/opengl/context.go @@ -297,7 +297,3 @@ func (c *Context) BufferSubData(bufferType BufferType, data []int16) { func (c *Context) DrawElements(mode Mode, len int) { gl.DrawElements(uint32(mode), int32(len), gl.UNSIGNED_SHORT, gl.PtrOffset(0)) } - -func (c *Context) Flush() { - gl.Flush() -} diff --git a/internal/graphics/internal/opengl/context_js.go b/internal/graphics/internal/opengl/context_js.go index 62381e47b..c1a255140 100644 --- a/internal/graphics/internal/opengl/context_js.go +++ b/internal/graphics/internal/opengl/context_js.go @@ -347,8 +347,3 @@ func (c *Context) DrawElements(mode Mode, len int) { gl := c.gl gl.DrawElements(int(mode), len, gl.UNSIGNED_SHORT, 0) } - -func (c *Context) Flush() { - gl := c.gl - gl.Flush() -}