Backporting Angelscript Haiku support fix.
Fixing segfault on OpenGL extensions listing.
This commit is contained in:
parent
738c7e509e
commit
d69b75f83e
@ -1079,15 +1079,23 @@
|
||||
// Haiku OS
|
||||
#elif __HAIKU__
|
||||
#define AS_HAIKU
|
||||
// Only x86-32 is currently supported by Haiku, but they do plan to support
|
||||
// x86-64 and PowerPC in the future, so should go ahead and check the platform
|
||||
// for future compatibility
|
||||
#if (defined(i386) || defined(__i386) || defined(__i386__)) && !defined(__LP64__)
|
||||
#define AS_X86
|
||||
#define THISCALL_PASS_OBJECT_POINTER_ON_THE_STACK
|
||||
#define THISCALL_RETURN_SIMPLE_IN_MEMORY
|
||||
#define CDECL_RETURN_SIMPLE_IN_MEMORY
|
||||
#define STDCALL_RETURN_SIMPLE_IN_MEMORY
|
||||
#elif defined(__x86_64__)
|
||||
#define AS_X64_GCC
|
||||
#define HAS_128_BIT_PRIMITIVES
|
||||
#undef COMPLEX_MASK
|
||||
#define COMPLEX_MASK (asOBJ_APP_CLASS_CONSTRUCTOR | asOBJ_APP_CLASS_DESTRUCTOR)
|
||||
#undef COMPLEX_RETURN_MASK
|
||||
#define COMPLEX_RETURN_MASK (asOBJ_APP_CLASS_CONSTRUCTOR | asOBJ_APP_CLASS_DESTRUCTOR)
|
||||
#define AS_LARGE_OBJS_PASSED_BY_REF
|
||||
#define AS_LARGE_OBJ_MIN_SIZE 5
|
||||
#undef STDCALL
|
||||
#define STDCALL
|
||||
#else
|
||||
#define AS_MAX_PORTABILITY
|
||||
#endif
|
||||
|
@ -322,11 +322,13 @@ namespace spades {
|
||||
"GL_EXT_framebuffer_object",
|
||||
NULL};
|
||||
|
||||
if (str) {
|
||||
SPLog("--- Extensions ---");
|
||||
std::vector<std::string> strs = spades::Split(str, " ");
|
||||
for (size_t i = 0; i < strs.size(); i++) {
|
||||
SPLog("%s", strs[i].c_str());
|
||||
}
|
||||
}
|
||||
SPLog("------------------");
|
||||
|
||||
for (size_t i = 0; requiredExtensions[i]; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user