need opengl X Motif help: invisible

Hi guys:

I just started to learn X. My problem was when the program started, the glxarea widget won’t show anything. But after I resized the window (using mouse), I could see the rendering, why?

I have been trying to find out the problem for hours… quite frustrating. Any suggestions?

Thanks,

maybe you added only an XmNresizeCallback. try to use the same function as XmNexposeCallback.