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().
This commit is contained in:
commit
0e45984fa0
1596 changed files with 468120 additions and 0 deletions
323
premake/Xcode/Xcode3/SDL2main/SDL2main.xcodeproj/project.pbxproj
Executable file
323
premake/Xcode/Xcode3/SDL2main/SDL2main.xcodeproj/project.pbxproj
Executable file
|
@ -0,0 +1,323 @@
|
|||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 45;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
7C6F655C3400039274C60CE8 /* SDL_dummy_main.c in Sources */ = {isa = PBXBuildFile; fileRef = 26C4436469AA4D7A0F7C1DFD /* SDL_dummy_main.c */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
26C4436469AA4D7A0F7C1DFD /* SDL_dummy_main.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_dummy_main.c"; path = "../../../../src/main/dummy/SDL_dummy_main.c"; sourceTree = "<group>"; };
|
||||
58DC62993160374E09FF7AD6 /* libSDL2main.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = "libSDL2main.a"; path = "libSDL2main.a"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
21963BE338963B81309D4E7A /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
608409A47F473CA5269D156D /* SDL2main */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
43645C8537AA27FA2F2F3BDD /* src */,
|
||||
69F4412F1D6557483C505475 /* Products */,
|
||||
);
|
||||
name = "SDL2main";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
43645C8537AA27FA2F2F3BDD /* src */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
31FB051624A240B6101F10A4 /* main */,
|
||||
);
|
||||
name = "src";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
31FB051624A240B6101F10A4 /* main */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
1AA63C577EFC727433BD4743 /* dummy */,
|
||||
);
|
||||
name = "main";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
1AA63C577EFC727433BD4743 /* dummy */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
26C4436469AA4D7A0F7C1DFD /* SDL_dummy_main.c */,
|
||||
);
|
||||
name = "dummy";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
69F4412F1D6557483C505475 /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
58DC62993160374E09FF7AD6 /* libSDL2main.a */,
|
||||
);
|
||||
name = "Products";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
0E7126A94A11494963D3548B /* SDL2main */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 066A29C00B877F83230951D3 /* Build configuration list for PBXNativeTarget "SDL2main" */;
|
||||
buildPhases = (
|
||||
2FF90B8D051E2574710B253A /* Resources */,
|
||||
215446A6532346FA6D1F2C8C /* Sources */,
|
||||
21963BE338963B81309D4E7A /* Frameworks */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = "SDL2main";
|
||||
productName = "SDL2main";
|
||||
productReference = 58DC62993160374E09FF7AD6 /* libSDL2main.a */;
|
||||
productType = "com.apple.product-type.library.static";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
08FB7793FE84155DC02AAC07 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "SDL2main" */;
|
||||
compatibilityVersion = "Xcode 3.2";
|
||||
hasScannedForEncodings = 1;
|
||||
mainGroup = 608409A47F473CA5269D156D /* SDL2main */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
0E7126A94A11494963D3548B /* libSDL2main.a */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
2FF90B8D051E2574710B253A /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
215446A6532346FA6D1F2C8C /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
7C6F655C3400039274C60CE8 /* SDL_dummy_main.c in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXVariantGroup section */
|
||||
/* End PBXVariantGroup section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
510953B45C415358368511E1 /* Debug Universal */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CONFIGURATION_BUILD_DIR = Build/Debug;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_MODEL_TUNING = G5;
|
||||
INSTALL_PATH = /usr/local/lib;
|
||||
PRODUCT_NAME = "SDL2main";
|
||||
};
|
||||
name = "Debug Universal";
|
||||
};
|
||||
16D675B01A7317CD3B8D5FE5 /* Debug Native */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CONFIGURATION_BUILD_DIR = Build/Debug;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_MODEL_TUNING = G5;
|
||||
INSTALL_PATH = /usr/local/lib;
|
||||
PRODUCT_NAME = "SDL2main";
|
||||
};
|
||||
name = "Debug Native";
|
||||
};
|
||||
76C85F4810AE2D6230A80EF9 /* Release Universal */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
CONFIGURATION_BUILD_DIR = Build/Release;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_MODEL_TUNING = G5;
|
||||
INSTALL_PATH = /usr/local/lib;
|
||||
PRODUCT_NAME = "SDL2main";
|
||||
};
|
||||
name = "Release Universal";
|
||||
};
|
||||
6786373D26612E5222AC01B1 /* Release Native */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
CONFIGURATION_BUILD_DIR = Build/Release;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_MODEL_TUNING = G5;
|
||||
INSTALL_PATH = /usr/local/lib;
|
||||
PRODUCT_NAME = "SDL2main";
|
||||
};
|
||||
name = "Release Native";
|
||||
};
|
||||
57CB0CB34D9E521A60B061AC /* Debug Universal */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
|
||||
CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
|
||||
CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_ENABLE_CPP_EXCEPTIONS = NO;
|
||||
GCC_ENABLE_FIX_AND_CONTINUE = YES;
|
||||
GCC_ENABLE_OBJC_EXCEPTIONS = NO;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"USING_PREMAKE_CONFIG_H",
|
||||
"_DEBUG",
|
||||
);
|
||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
HEADER_SEARCH_PATHS = (
|
||||
"..",
|
||||
"../../../../include",
|
||||
);
|
||||
OBJROOT = "obj/Universal/Debug";
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SYMROOT = "Build/Debug";
|
||||
};
|
||||
name = "Debug Universal";
|
||||
};
|
||||
44C96A8A3A1153C9612956EB /* Debug Native */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(NATIVE_ARCH_ACTUAL)";
|
||||
CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
|
||||
CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_ENABLE_CPP_EXCEPTIONS = NO;
|
||||
GCC_ENABLE_FIX_AND_CONTINUE = YES;
|
||||
GCC_ENABLE_OBJC_EXCEPTIONS = NO;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"USING_PREMAKE_CONFIG_H",
|
||||
"_DEBUG",
|
||||
);
|
||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
HEADER_SEARCH_PATHS = (
|
||||
"..",
|
||||
"../../../../include",
|
||||
);
|
||||
OBJROOT = "obj/Debug";
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SYMROOT = "Build/Debug";
|
||||
};
|
||||
name = "Debug Native";
|
||||
};
|
||||
0AF04773722D251F47E85CD4 /* Release Universal */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
|
||||
CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
|
||||
CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_ENABLE_CPP_EXCEPTIONS = NO;
|
||||
GCC_ENABLE_OBJC_EXCEPTIONS = NO;
|
||||
GCC_OPTIMIZATION_LEVEL = 3;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"USING_PREMAKE_CONFIG_H",
|
||||
"NDEBUG",
|
||||
);
|
||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
HEADER_SEARCH_PATHS = (
|
||||
"..",
|
||||
"../../../../include",
|
||||
);
|
||||
OBJROOT = "obj/Universal/Release";
|
||||
ONLY_ACTIVE_ARCH = NO;
|
||||
SYMROOT = "Build/Release";
|
||||
};
|
||||
name = "Release Universal";
|
||||
};
|
||||
328D4CB71647274B61221D5D /* Release Native */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(NATIVE_ARCH_ACTUAL)";
|
||||
CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
|
||||
CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_ENABLE_CPP_EXCEPTIONS = NO;
|
||||
GCC_ENABLE_OBJC_EXCEPTIONS = NO;
|
||||
GCC_OPTIMIZATION_LEVEL = 3;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"USING_PREMAKE_CONFIG_H",
|
||||
"NDEBUG",
|
||||
);
|
||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
HEADER_SEARCH_PATHS = (
|
||||
"..",
|
||||
"../../../../include",
|
||||
);
|
||||
OBJROOT = "obj/Release";
|
||||
ONLY_ACTIVE_ARCH = NO;
|
||||
SYMROOT = "Build/Release";
|
||||
};
|
||||
name = "Release Native";
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
066A29C00B877F83230951D3 /* Build configuration list for PBXNativeTarget "libSDL2main.a" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
510953B45C415358368511E1 /* Debug Universal */,
|
||||
16D675B01A7317CD3B8D5FE5 /* Debug Native */,
|
||||
76C85F4810AE2D6230A80EF9 /* Release Universal */,
|
||||
6786373D26612E5222AC01B1 /* Release Native */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = "Debug Universal";
|
||||
};
|
||||
1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "SDL2main" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
57CB0CB34D9E521A60B061AC /* Debug Universal */,
|
||||
44C96A8A3A1153C9612956EB /* Debug Native */,
|
||||
0AF04773722D251F47E85CD4 /* Release Universal */,
|
||||
328D4CB71647274B61221D5D /* Release Native */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = "Debug Universal";
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
|
||||
};
|
||||
rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue