Writing a plugin using NPAPI + D3D. It works on Firefox, but the browser blacks out. Why?
问题 I'm writing a plugin, using NPAPI and D3D. I just simply put a D3D sample from DXSDK and NPAPI together. I receive a HWND when the plugin starts up, and I passed it to D3D to draw. It works though. the control(a 400 * 300 rectangle) on the test page DOES show what I expected. But all other area in FireFox window is black, including the menu bar. All other contents on the test page cannot be seen. I tried just InitDevice(D3D) with the HWND and do NO rendering at all. But still got the same