From 78e912e30bf6169082a77f457b8ff5ba97bbe7b9 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 24 Nov 2019 18:11:45 +0900 Subject: [PATCH] graphicsdriver/opengl: Fix comments --- internal/graphicsdriver/opengl/context_desktop.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/graphicsdriver/opengl/context_desktop.go b/internal/graphicsdriver/opengl/context_desktop.go index 3d7e7fb16421..1e6260870bc0 100644 --- a/internal/graphicsdriver/opengl/context_desktop.go +++ b/internal/graphicsdriver/opengl/context_desktop.go @@ -529,7 +529,7 @@ func (c *context) mapPixelBuffer(buffer buffer, t textureNative) uintptr { var ptr uintptr _ = c.t.Call(func() error { gl.BindBuffer(gl.PIXEL_UNPACK_BUFFER, uint32(buffer)) - // Even though only the part of the buffer is updated, that's fine. + // Even though the buffer is partly updated, GL_WRITE_ONLY is fine. // https://stackoverflow.com/questions/30248594/write-only-glmapbuffer-what-if-i-dont-write-it-all ptr = gl.MapBuffer(gl.PIXEL_UNPACK_BUFFER, gl.WRITE_ONLY) return nil