Writing a plugin using NPAPI + D3D. It works on Firefox, but the browser is black. What for?

I am writing a plugin using NPAPI and D3D. I just simply put the D3D sample from DXSDK and NPAPI together. I get HWND when the plugin starts up and I passed it to D3D for drawing.

It works. control (rectangle 400 * 300) on the test page. Shows what I expected.

But all other areas in the FireFox window are black, including the menu bar. The rest of the contents of the test page is not visible.

I tried only InitDevice (D3D) with HWND and am not doing anything at all. But still there was the same problem.

Can someone help me plz here?

+1
source share
1 answer

, ; , . -, - D3D, firefox, , , .

-, , , , D3D . () , Firefox DX- - . , .

, FireBreath , javascript - , OGL DX, - .

, !

0

Source: https://habr.com/ru/post/1786543/


All Articles