mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
graphicsdriver/opengl: Fix comments
This commit is contained in:
parent
3d3a1be1c4
commit
78e912e30b
@ -529,7 +529,7 @@ func (c *context) mapPixelBuffer(buffer buffer, t textureNative) uintptr {
|
|||||||
var ptr uintptr
|
var ptr uintptr
|
||||||
_ = c.t.Call(func() error {
|
_ = c.t.Call(func() error {
|
||||||
gl.BindBuffer(gl.PIXEL_UNPACK_BUFFER, uint32(buffer))
|
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
|
// 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)
|
ptr = gl.MapBuffer(gl.PIXEL_UNPACK_BUFFER, gl.WRITE_ONLY)
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user