DEV Community

Discussion on: Using SDL2: Optimizing Surface Blitting

Collapse
 
akariiinnn profile image
Akariiinnn

I did include SDL_Image.h and added the dlls and libs to my project and to my CMakeLists.txt

Collapse
 
akariiinnn profile image
Akariiinnn • Edited

Replacing SDL_FreeSurface(image_surface) to return image_surface worked.

If that can help someone.