Good day. I’m using openFl. When i’m compiling my project in cpp -> stage3d doesnt working. When compiling in flash each frame i’m doing only
private function frame(e:Event):Void
{
context3D.clear();
context3D.present();
}
background becomes black (it was white by project settings), when compiling in cpp - it dont change its color. How to fix this problem?
maybe problem in some of this lines?:
stage.stage3Ds[0].addEventListener(Event.CONTEXT3D_CREATE, onContextCreated);
stage.stage3Ds[0].addEventListener(ErrorEvent.ERROR, errorHandler);
stage.stage3Ds[0].requestContext3D(‘auto’);
_context3D = stage.stage3Ds[0].context3D;
_context3D.configureBackBuffer(width, height,0, false);