-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPBGE: Fix default frame buffer object restored when creating an off …
…screen. Previously when an off screen was created the default frame buffer object was restored because the constructor function assumed that no frame buffer object was bound before. To fix this issue in the OffScreens class in the OpenGL rasterizer, we store the current off screen index before create an off screen and then restore this off screen after the creation if its index is not -1. Also the RestoreScreen (previously named RestoreScreenFrameBuffer) now set the current off screen index to -1 for the check explained above. An other bug noticed was for blit off screen just after theirs creation. Indeed an off screen just created doesn't have a valid draw/read buffer state which failed the blit. To fix this issue we set the draw/read buffer in the blit function as for simple bind function.
- Loading branch information
1 parent
6df1e38
commit 1f23323
Showing
4 changed files
with
23 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters