Hi I am having a weird rendering issue.
See screenshot below
![](https://uploads.gamedev.net/forums/monthly_2021_04/f2ed631f69cb4ad5800b88e787513eff.image.png)
I originaly thought that the sequence of the render is the issue but I re-reviewed the code countless times and it is the sequence is OK.
Background
there are 3 2d images sprite in here
1. the background image
2. the book
3. and a transparent panel
Sequence (Including RenderDoc trace)
1. the background image is rendered first to a main render target (FBO#1)
![](https://uploads.gamedev.net/forums/monthly_2021_04/b6afd62ce9ed4d1191c57a0def6f8f80.image.png)
2. the the book is rendered to another FBO#2, since this is a popup window of some sort
![](https://uploads.gamedev.net/forums/monthly_2021_04/e8ca2cd96aa848898b8bd2abf7d0769d.image.png)
3. then the transparent panel is rendered on top of the book image in FBO#2
![](https://uploads.gamedev.net/forums/monthly_2021_04/6dbeb33fbf61498bb622b89fe20f6cf0.image.png)
4. FBO#2 is rendered as a texture to FBO#1, as seen on screen shot bellow, input is the FBO#2.
![](https://uploads.gamedev.net/forums/monthly_2021_04/c8b57e4acc2e43d9a41018a0b304a34c.image.png)
Result, the transparent panel blends with the background image instead of the book making a hole.
What could possibly wrong with it?