Skip to content

Commit

Permalink
graphicsdriver/opengl: Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed Nov 24, 2019
1 parent 3d3a1be commit 78e912e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/graphicsdriver/opengl/context_desktop.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 78e912e

Please sign in to comment.