I'm trying to create my own RWindow (I'm running opengl es in separate thread) for OpenGL ES.
When I'm callingCode:RWsSession iWsSession; RWindowGroup iWindowGroup; RWindow iWindow; //connect session User::LeaveIfError(iWsSession.Connect()); iWsSession.ComputeMode(RWsSession::EPriorityControlDisabled); //create windowgroup iWindowGroup=RWindowGroup(iWsSession); User::LeaveIfError(iWindowGroup.Construct((TUint32)&iWindowGroup)); iWindowGroup.EnableScreenChangeEvents(); // flip events (EEventScreenDeviceChanged) iWindowGroup.EnableFocusChangeEvents(); // EEventFocusGroupChanged iWindowGroup.SetOrdinalPosition(0, 1); // TInt aPos, TInt aOrdinalPriority //create window TSize windowsize(320, 240); iWindow=RWindow(iWsSession); User::LeaveIfError(iWindow.Construct(iWindowGroup, (TUint32)&iWindow)); iWindow.SetSize(windowsize); iWindow.PointerFilter(EPointerFilterDrag, 0); iWindow.SetPointerGrab(ETrue); iWindow.SetVisible(ETrue); iWindow.Activate();
I will get WSERV 6 panic (invalid window handle). How should I initialize the RWindow for Opengl ES? The same RWindow intialization example works for DirectScreenAccess.Code:iEglSurface = eglCreateWindowSurface (iEglDisplay, iEglConfig, &iWindow, 0);



