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

Display surface missing locking #147

Open
veikkos opened this issue Jun 28, 2020 · 0 comments
Open

Display surface missing locking #147

veikkos opened this issue Jun 28, 2020 · 0 comments
Labels
technical Technical improvement not visible for end users

Comments

@veikkos
Copy link
Member

veikkos commented Jun 28, 2020

Display surface missing locking. surface should be locked while game logic is updating the content and unlocked for rendering. It would guarantee that the pixel data pointer is valid. It happens to work without locking for now but it might break on any SDL update or on some new platform.

See SDL_LockSurface.

@veikkos veikkos added the technical Technical improvement not visible for end users label Jun 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
technical Technical improvement not visible for end users
Development

No branches or pull requests

1 participant