The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.
SDL
Simple Directmedia Layer Forums
What am I doing wrong with SDL_LockTexture()
AYOTECH14413
Joined: 18 Apr 2015
Posts: 1
Posted: Sat Apr 18, 2015 10:20 pm
I'm trying to use SDL_LockTexture and SDL_UnlockTexture for direct access to pixels in SDL 2.0. When I try to set pixels, I never see anything happen. Here's my code: