Closed caojingwen1996 closed 6 months ago
Can you provide the code you use to create the framebuffer?
thank you very much for your replay. I have added relevant codes。here is my test result: 1.Under all frameworks, can not read depth or color from FBO in nvidia graphics cards,but no problem with integrated graphics card
I see what is happening now. You are calling OpenGL functions that read from the control framebuffer in MouseUp()
, this will not work as these resources are only valid inside of Render()
because of DirectX interop reasons. So if you want to read from the GLWpfControl framebuffer you will have to do what inside of Render()
.
in nvidia card:
in intel card:
here is my code,just copy from source code:
MainWindow .cs
ExampleScene .cs