Closed AlexVestin closed 5 years ago
So the changing the values in my previous comment works, but I've hard-coded the values of the width and height.
@nkreeger how about sending width/height in the constructor of the context?
Closing as this is related to #9
Sorry for spamming your repo ha. A little less minor bug, is
glReadPixels
is only setting the first 4 elements of the array.I made a test painting a red fullscreen quad, so every n4 and (n+3)4 element should be 255.
which yields
So the first pixel is being read and put in to the pixel array.