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

SDL_Texture* from SDL_CreateTexture() causes GL_BindTexture() to segfault #932

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: HG 2.0
Reported for operating system, platform: Linux, x86_64

Comments on the original bug report:

On 2013-06-25 21:45:40 +0000, Charles Huber wrote:

Created attachment 1197
Demo program

If SDL_CreateTexture() takes the !IsSupportedFormat() path it will return a SDL_Texture* with a NULL driverdata member.

If you then SDL_GL_BindTexture() this will cause a segfault in GL_BindTexture() when it unconditionally dereferences driverdata.

Debian Wheezy, binary Radeon drivers on a "AMD Radeon HD 6900 Series".

SDL2 built from "changeset: 7317:37b77749523b".

On 2013-06-25 23:22:04 +0000, Sam Lantinga wrote:

Fixed, thanks for the report!
http://hg.libsdl.org/SDL/rev/46a5a6b8678e

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

No branches or pull requests

1 participant