Can't build OpenGL OpenFL example with -Dnext

Hi!
I can’t build OpenGL OpenFL example with -Dnext, cpp target
The error is here:
https://github.com/openfl/openfl-samples/blob/master/SimpleOpenGLView/Source/Main.hx#L94
It says that the ByteArray has no field byteView.
I see that this field is only for #js target, so how we should get pixelData for -Dnext, cpp target?

I need to think of a formal API for accessing the low-level buffer data. In the meantime, I came up with a fix:

var pixelData = @:privateAccess (bitmapData.__image).data;

Give it a try and see if it works for you, I also committed a fix that helps ensure this works both on HTML5 -Ddom as well as -Dwebgl

Thak you, Joshua! It’s works :wink: