Use just hwSym for Win32+SDL builds without PNG_STATIC, not both hwSym and GetProcAddress!

apparently SDL_LoadFunction is just a GetProcAddress call anyway for Windows
This commit is contained in:
Monster Iestyn 2017-06-19 17:39:29 +01:00
parent d6721755c7
commit 9b3e5d11f6

View file

@ -853,8 +853,7 @@ static inline boolean M_PNGLib(void)
apng_set_acTL = hwSym("png_set_acTL", pnglib); apng_set_acTL = hwSym("png_set_acTL", pnglib);
apng_write_frame_head = hwSym("png_write_frame_head", pnglib); apng_write_frame_head = hwSym("png_write_frame_head", pnglib);
apng_write_frame_tail = hwSym("png_write_frame_tail", pnglib); apng_write_frame_tail = hwSym("png_write_frame_tail", pnglib);
#endif #elif defined (_WIN32)
#ifdef _WIN32
apng_set_acTL = GetProcAddress("png_set_acTL", pnglib); apng_set_acTL = GetProcAddress("png_set_acTL", pnglib);
apng_write_frame_head = GetProcAddress("png_write_frame_head", pnglib); apng_write_frame_head = GetProcAddress("png_write_frame_head", pnglib);
apng_write_frame_tail = GetProcAddress("png_write_frame_tail", pnglib); apng_write_frame_tail = GetProcAddress("png_write_frame_tail", pnglib);