Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always initialise display->gl_context before it's used #5058

Closed
wants to merge 1 commit into from

Conversation

metayan
Copy link

@metayan metayan commented Jul 4, 2024

Fixes #5057 .

Otherwise SDL_GL_DeleteContext tried to access an uninitialised
pointer upon exit when not using the OpenGL renderer.

SDL_GL_DeleteContext doesn't try to delete a NULL pointer, so no need
to check for that.
@rom1v rom1v changed the base branch from master to dev July 5, 2024 07:26
rom1v pushed a commit that referenced this pull request Jul 5, 2024
Otherwise SDL_GL_DeleteContext() tried to access an uninitialized
pointer upon exit when not using the OpenGL renderer.

SDL_GL_DeleteContext() doesn't try to delete a NULL pointer, so no need
to check for that.

Fixes #5057 <#5057>
PR #5058 <#5058>

Signed-off-by: Romain Vimont <[email protected]>
@rom1v
Copy link
Collaborator

rom1v commented Jul 5, 2024

Merged: 46041e0

@rom1v rom1v closed this Jul 5, 2024
@metayan metayan deleted the init-gl-context branch August 1, 2024 20:05
FreedomBen pushed a commit to FreedomBen/scrcpy that referenced this pull request Aug 2, 2024
Otherwise SDL_GL_DeleteContext() tried to access an uninitialized
pointer upon exit when not using the OpenGL renderer.

SDL_GL_DeleteContext() doesn't try to delete a NULL pointer, so no need
to check for that.

Fixes Genymobile#5057 <Genymobile#5057>
PR Genymobile#5058 <Genymobile#5058>

Signed-off-by: Romain Vimont <[email protected]>
Gottox pushed a commit to Gottox/scrcpy that referenced this pull request Sep 29, 2024
Otherwise SDL_GL_DeleteContext() tried to access an uninitialized
pointer upon exit when not using the OpenGL renderer.

SDL_GL_DeleteContext() doesn't try to delete a NULL pointer, so no need
to check for that.

Fixes Genymobile#5057 <Genymobile#5057>
PR Genymobile#5058 <Genymobile#5058>

Signed-off-by: Romain Vimont <[email protected]>
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.

Crash when quitting on macOS when not using OpenGL
2 participants