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 ERROR: Invalid rectangle dimensions for LockTexture. [FIXED] #30

Open
shovemedia opened this issue May 30, 2023 · 1 comment
Open

Comments

@shovemedia
Copy link

Complies fine. Tests pass.
All the SDL demos return the error in the title:
SDL ERROR: Invalid rectangle dimensions for LockTexture.

I'm on OS X and that's probably part of the issue. :/
I've worked with SDL just a bit, but not on a mac

@shovemedia
Copy link
Author

SDL now working fine under OS X with the following change to
demos/vc.c
from:

if (SDL_LockTexture(vc_sdl_texture, &window_rect, &pixels_dst, &pitch) < 0) return_defer(1);

to

 if (SDL_LockTexture(vc_sdl_texture, NULL, &pixels_dst, &pitch) < 0) return_defer(1);

@shovemedia shovemedia changed the title SDL ERROR: Invalid rectangle dimensions for LockTexture. SDL ERROR: Invalid rectangle dimensions for LockTexture. [FIXED] May 31, 2023
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