Closed MKGilby closed 3 months ago
I got the solution, need a new(p) and a new(pitch) before updatetexture (and disposes too, and one more ^ after p in move).
Yes, the pointers passed to SDL_LockTexture
need to point to valid memory. So you need to either create pointer vars and call new/dispose, or you can create non-pointer vars and pass their addresses using the @
operator.
Hello folks!
I have a problem using SDL_LockTexture.
If I try to use it as it is declared in sdlrenderer.inc, it generates an Access Violation:
But If I change the declaration to the following (and change call parameters accordingly), it works flawlessly:
Am I doing something wrong?
Attached a simple Lazarus test project. SimpleStreamingTextureTest.zip
Thanks, Gilby