Strange segfault from SDL_FreeSurface

后端 未结 2 1499
清歌不尽
清歌不尽 2021-01-24 04:48

I have the following simple SDL code:

#include 
#include 
#include 

// helpers

bool init(SDL_Window **win, SDL_Sur         


        
2条回答
  •  故里飘歌
    2021-01-24 05:30

    Please rename your function

    void close(SDL_Window **win, SDL_Surface **surf)
    

    since close is a standard C library function.

提交回复
热议问题