forked from libsdl-org/SDL
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed crash if initialization of EGL failed but was tried again later.
The internal function SDL_EGL_LoadLibrary() did not delete and remove a mostly uninitialized data structure if loading the library first failed. A later try to use EGL then skipped initialization and assumed it was previously successful because the data structure now already existed. This led to at least one crash in the internal function SDL_EGL_ChooseConfig() because a NULL pointer was dereferenced to make a call to eglBindAPI().
- Loading branch information
0 parents
commit 0e45984
Showing
1,596 changed files
with
468,120 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
syntax:glob | ||
aclocal.m4 | ||
autom4te* | ||
config.cache | ||
config.log | ||
config.status | ||
Makefile | ||
sdl-config | ||
SDL2.spec | ||
build | ||
Build | ||
|
||
# for Xcode | ||
*.orig | ||
*.swp | ||
*.tmp | ||
*.rej | ||
*~ | ||
*.o | ||
*.mode1* | ||
*.perspective* | ||
*.pbxuser | ||
(^|/)build($|/) | ||
.DS_Store | ||
xcuserdata | ||
*.xcworkspace | ||
|
||
# for Visual C++ | ||
Debug | ||
Release | ||
*.user | ||
*.ncb | ||
*.suo | ||
*.sdf | ||
VisualC/tests/loopwave/sample.wav | ||
VisualC/tests/testautomation/CompareSurfaces0001_Reference.bmp | ||
VisualC/tests/testautomation/CompareSurfaces0001_TestOutput.bmp | ||
VisualC/tests/testgamecontroller/axis.bmp | ||
VisualC/tests/testgamecontroller/button.bmp | ||
VisualC/tests/testgamecontroller/controllermap.bmp | ||
VisualC/tests/testoverlay2/moose.dat | ||
VisualC/tests/testrendertarget/icon.bmp | ||
VisualC/tests/testrendertarget/sample.bmp | ||
VisualC/tests/testscale/icon.bmp | ||
VisualC/tests/testscale/sample.bmp | ||
VisualC/tests/testsprite2/icon.bmp | ||
VisualC/visualtest/icon.bmp | ||
VisualC/visualtest/testquit.actions | ||
VisualC/visualtest/testquit.config | ||
VisualC/visualtest/testquit.exe | ||
VisualC/visualtest/testquit.parameters | ||
VisualC/visualtest/testsprite2.exe | ||
VisualC/visualtest/testsprite2_sample.actions | ||
VisualC/visualtest/testsprite2_sample.config | ||
VisualC/visualtest/testsprite2_sample.parameters | ||
|
||
# for Android | ||
android-project/local.properties | ||
|
||
sdl.pc | ||
test/autom4te* | ||
test/config.cache | ||
test/config.log | ||
test/config.status | ||
test/Makefile | ||
test/SDL2.dll | ||
test/checkkeys | ||
test/controllermap | ||
test/loopwave | ||
test/loopwavequeue | ||
test/testatomic | ||
test/testaudiohotplug | ||
test/testaudioinfo | ||
test/testautomation | ||
test/testdraw2 | ||
test/testdrawchessboard | ||
test/testdropfile | ||
test/testerror | ||
test/testfile | ||
test/testgamecontroller | ||
test/testgesture | ||
test/testgl2 | ||
test/testgles | ||
test/testgles2 | ||
test/testhaptic | ||
test/testhittesting | ||
test/testhotplug | ||
test/testiconv | ||
test/testime | ||
test/testintersections | ||
test/testjoystick | ||
test/testkeys | ||
test/testloadso | ||
test/testlock | ||
test/testmessage | ||
test/testmultiaudio | ||
test/testnative | ||
test/testoverlay2 | ||
test/testplatform | ||
test/testpower | ||
test/testfilesystem | ||
test/testrelative | ||
test/testrendercopyex | ||
test/testrendertarget | ||
test/testresample | ||
test/testrumble | ||
test/testscale | ||
test/testsem | ||
test/testshader | ||
test/testshape | ||
test/testsprite2 | ||
test/testspriteminimal | ||
test/teststreaming | ||
test/testthread | ||
test/testtimer | ||
test/testver | ||
test/testviewport | ||
test/testwm2 | ||
test/torturethread | ||
test/*.exe | ||
test/*.dSYM | ||
buildbot | ||
test/buildbot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
LOCAL_PATH := $(call my-dir) | ||
|
||
########################### | ||
# | ||
# SDL shared library | ||
# | ||
########################### | ||
|
||
include $(CLEAR_VARS) | ||
|
||
LOCAL_MODULE := SDL2 | ||
|
||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include | ||
|
||
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES) | ||
|
||
LOCAL_SRC_FILES := \ | ||
$(subst $(LOCAL_PATH)/,, \ | ||
$(wildcard $(LOCAL_PATH)/src/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/audio/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/audio/android/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/audio/dummy/*.c) \ | ||
$(LOCAL_PATH)/src/atomic/SDL_atomic.c \ | ||
$(LOCAL_PATH)/src/atomic/SDL_spinlock.c.arm \ | ||
$(wildcard $(LOCAL_PATH)/src/core/android/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/cpuinfo/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/dynapi/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/events/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/file/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/haptic/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/haptic/dummy/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/joystick/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/joystick/android/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/loadso/dlopen/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/power/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/power/android/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/filesystem/android/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/render/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/render/*/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/stdlib/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/thread/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/thread/pthread/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/timer/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/timer/unix/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/video/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/video/android/*.c) \ | ||
$(wildcard $(LOCAL_PATH)/src/test/*.c)) | ||
|
||
LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES | ||
LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog -landroid | ||
|
||
include $(BUILD_SHARED_LIBRARY) | ||
|
||
########################### | ||
# | ||
# SDL static library | ||
# | ||
########################### | ||
|
||
LOCAL_MODULE := SDL2_static | ||
|
||
LOCAL_MODULE_FILENAME := libSDL2 | ||
|
||
LOCAL_SRC_FILES += $(subst $(LOCAL_PATH)/,,$(LOCAL_PATH)/src/main/android/SDL_android_main.c) | ||
|
||
LOCAL_LDLIBS := | ||
LOCAL_EXPORT_LDLIBS := -Wl,--undefined=Java_org_libsdl_app_SDLActivity_nativeInit -ldl -lGLESv1_CM -lGLESv2 -llog -landroid | ||
|
||
include $(BUILD_STATIC_LIBRARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
Bugs are now managed in the SDL bug tracker, here: | ||
|
||
http://bugzilla.libsdl.org/ | ||
|
||
You may report bugs there, and search to see if a given issue has already | ||
been reported, discussed, and maybe even fixed. | ||
|
||
|
||
You may also find help on the SDL mailing list. Subscription information: | ||
|
||
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org | ||
|
||
Bug reports are welcome here, but we really appreciate if you use Bugzilla, as | ||
bugs discussed on the mailing list may be forgotten or missed. | ||
|
Oops, something went wrong.