Mercurial > sdl-ios-xcode
comparison src/haptic/linux/SDL_syshaptic.c @ 3218:81773a1eac83
Patch from David Carre:
I fixed a bug in the "SDL_DestroyRenderer()" function in the pandora x11 renderer (in fact the bug was in the "X11_GLES_MakeCurrent()" function) that was causing a crash when exiting SDL.
There was a problem while terminating the x11 egl window, that was preventing to quit/close SDL/SDL-window then reload SDL/SDL-window inside the same application.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 30 Jul 2009 14:53:57 +0000 |
parents | 4094b4f1c3a1 |
children | 7c18b38f0f9a |
comparison
equal
deleted
inserted
replaced
3217:26ce0b98f2fb | 3218:81773a1eac83 |
---|---|
33 #include <linux/input.h> /* Force feedback linux stuff. */ | 33 #include <linux/input.h> /* Force feedback linux stuff. */ |
34 #include <fcntl.h> /* O_RDWR */ | 34 #include <fcntl.h> /* O_RDWR */ |
35 #include <limits.h> /* INT_MAX */ | 35 #include <limits.h> /* INT_MAX */ |
36 #include <errno.h> /* errno, strerror */ | 36 #include <errno.h> /* errno, strerror */ |
37 #include <math.h> /* atan2 */ | 37 #include <math.h> /* atan2 */ |
38 #include <sys/stat.h> /* stat */ | |
38 | 39 |
39 /* Just in case. */ | 40 /* Just in case. */ |
40 #ifndef M_PI | 41 #ifndef M_PI |
41 # define M_PI 3.14159265358979323846 | 42 # define M_PI 3.14159265358979323846 |
42 #endif | 43 #endif |