mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
parent
65fdf48cbf
commit
3df198f68e
@ -529,7 +529,7 @@ func (c *context) mapPixelBuffer(buffer buffer) unsafe.Pointer {
|
||||
var ptr unsafe.Pointer
|
||||
_ = c.t.Call(func() error {
|
||||
gl.BindBuffer(gl.PIXEL_UNPACK_BUFFER, uint32(buffer))
|
||||
ptr = gl.MapBuffer(gl.PIXEL_UNPACK_BUFFER, gl.WRITE_ONLY)
|
||||
ptr = gl.MapBuffer(gl.PIXEL_UNPACK_BUFFER, gl.READ_WRITE)
|
||||
return nil
|
||||
})
|
||||
return ptr
|
||||
|
@ -47,6 +47,7 @@ const (
|
||||
MAX_TEXTURE_SIZE = 0x0D33
|
||||
NEAREST = 0x2600
|
||||
NO_ERROR = 0
|
||||
READ_WRITE = 0x88BA
|
||||
RGBA = 0x1908
|
||||
TEXTURE_2D = 0x0DE1
|
||||
TEXTURE_MAG_FILTER = 0x2800
|
||||
|
Loading…
Reference in New Issue
Block a user