Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
External rendering SDL2
#4
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!
Reply


Messages In This Thread
External rendering SDL2 - by RootBeerKing - 06-27-2021, 06:26 AM
RE: External rendering SDL2 - by megamarc - 06-27-2021, 04:32 PM
RE: External rendering SDL2 - by RootBeerKing - 12-29-2021, 05:28 AM
RE: External rendering SDL2 - by megamarc - 01-04-2022, 01:32 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)