Hello guys! I've asked this on the other forums, but no one answered my question so far. I know there are some talented devs here, so i thought i'll give it a try and ask for your help. I'm just taking my first steps with drawing custom instruments using OpenGL (and OpenGL in general). So far i have properly registered drawing callback for gauges phase that draws simple OpenGL primivites. I'm aware that i need to do all of my OpenGL rendering on the panel texture for the instrument to be visible in 3D cockpit. However all my drawing stuff ends up being simply rendered inside X-Plane window (on top of the panel, gauges etc.) and not on the underlying panel texture. For now, my drawing callback is really simple: int myDrawingCallback(XPLMDrawingPhase inPhase, int inIsBefore, void* inRefcon) { XPLMSetGraphicsState(0, 1, 0, 0, 0, 0, 0); ... [couple of basic gl* functions to draw a simple line] ... return 1; }Could someone please explain to me what should i do to direct all of my OpenGL drawing to the underlying panel texture and not to the X-Plane window itself? Thanks in advance!