01-04-2022, 01:32 AM
Happy new year!
How are you doing?
Without having the full source code of your attempt I can only guess, as I'm not expert on the quirks of C++. But there's a thing it doesn't smell well for me: the locked texture lives inside a "graphics" class, whereas TLN_UpdateFrame() is being called outside that class. I don't know how C++ handles this, but concerning access rights, you're trying that TLN_UpdateFrame() access private data of an external class, and that's forbidden. Maybe the segmentation fault is originated on this unallowed access, but that's just a guess.
Make sure that the target surface and _rt_pixels have public access, or call TLN_UpdateFrame() from inside Graphics class.
Let me know!
How are you doing?
Without having the full source code of your attempt I can only guess, as I'm not expert on the quirks of C++. But there's a thing it doesn't smell well for me: the locked texture lives inside a "graphics" class, whereas TLN_UpdateFrame() is being called outside that class. I don't know how C++ handles this, but concerning access rights, you're trying that TLN_UpdateFrame() access private data of an external class, and that's forbidden. Maybe the segmentation fault is originated on this unallowed access, but that's just a guess.
Make sure that the target surface and _rt_pixels have public access, or call TLN_UpdateFrame() from inside Graphics class.
Let me know!