Skip to content

Fix window turning black when I switch screen modes#11

Draft
Quipyowert2 wants to merge 2 commits intokeestux:masterfrom
Quipyowert2:black-screen
Draft

Fix window turning black when I switch screen modes#11
Quipyowert2 wants to merge 2 commits intokeestux:masterfrom
Quipyowert2:black-screen

Conversation

@Quipyowert2
Copy link
Contributor

@Quipyowert2 Quipyowert2 commented Feb 24, 2024

This fixes the "Go Ollie!" window turning black when switching between fullscreen and windowed with OpenGL hardware acceleration enabled. Took me about three weeks to debug this. I tried reusing the window before, and also tried putting a glLoadIdentity right after changing to the texture matrix, but didn't think to try both the changes together until today.

I haven't yet fixed the bug where turning hardware acceleration off in GoOllie causes the game to open a blank window while keeping the original window open. I've narrowed it down to the WidgetManager class always using a HWGraphics when it should perhaps be using the superclass Graphics instead when gSexyAppBase->Is3DAccelerated() is false.

This fixes the "Go Ollie!" window turning black when switching between
fullscreen and windowed with OpenGL hardware acceleration enabled.
@Quipyowert2 Quipyowert2 marked this pull request as draft February 27, 2024 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant