Lachee / raylib-goplus

A newer version of the Go bindings for Raylib
zlib License
76 stars 6 forks source link

[BUG] GetImageData Panics #4

Closed Lachee closed 4 years ago

Lachee commented 5 years ago

Describe the bug When calling GetImageData or GetPixels, go will have a fatal panic with memory access violation.

To Reproduce Steps to reproduce the behavior:

  1. Modify the Hello World to load an image
  2. Get the pixels of the image using image.GetPixels
  3. Notice crash

Expected behavior GetPixels should return array of colors. This array ideally should be within the go managed enviroment and not link to C memory.

Desktop (please complete the following information):

Lachee commented 4 years ago

Seems to be fixed