From 8ae6ea5ff6ba17056bede6124791bf48e227564a Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 20 Mar 2023 01:42:28 +0900 Subject: [PATCH] internal/graphicsdriver/opengl: update comments --- internal/graphicsdriver/opengl/graphics.go | 4 +--- internal/graphicsdriver/opengl/program.go | 4 ---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/internal/graphicsdriver/opengl/graphics.go b/internal/graphicsdriver/opengl/graphics.go index 16f5d048b..eeb398e3b 100644 --- a/internal/graphicsdriver/opengl/graphics.go +++ b/internal/graphicsdriver/opengl/graphics.go @@ -155,9 +155,7 @@ func (g *Graphics) Reset() error { } func (g *Graphics) SetVertices(vertices []float32, indices []uint16) error { - // Note that the vertices passed to BufferSubData is not under GC management - // in opengl package due to unsafe-way. - // See BufferSubData in context_mobile.go. + // Note that the vertices and the indices passed to BufferSubData is not under GC management in the gl package. g.context.arrayBufferSubData(vertices) g.context.elementArrayBufferSubData(indices) return nil diff --git a/internal/graphicsdriver/opengl/program.go b/internal/graphicsdriver/opengl/program.go index b0b8b493e..aebc3a5b7 100644 --- a/internal/graphicsdriver/opengl/program.go +++ b/internal/graphicsdriver/opengl/program.go @@ -152,10 +152,6 @@ func (s *openGLState) reset(context *context) error { } s.arrayBuffer = theArrayBufferLayout.newArrayBuffer(context) - - // Note that the indices passed to NewElementArrayBuffer is not under GC management - // in opengl package due to unsafe-way. - // See NewElementArrayBuffer in context_mobile.go. s.elementArrayBuffer = context.newElementArrayBuffer(graphics.IndicesCount * 2) return nil