mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-25 09:17:12 +01:00
haiku: Patched SDL_bopengl.cc to compile on x86-64 Haiku.
Fixes Bugzilla #3729.
This commit is contained in:
parent
d5215d9df9
commit
a412ba0d75
@ -54,7 +54,7 @@ int BE_GL_LoadLibrary(_THIS, const char *path)
|
|||||||
if( get_image_symbol(info.id, "glBegin", B_SYMBOL_TYPE_ANY,
|
if( get_image_symbol(info.id, "glBegin", B_SYMBOL_TYPE_ANY,
|
||||||
&location) == B_OK) {
|
&location) == B_OK) {
|
||||||
|
|
||||||
_this->gl_config.dll_handle = (void *) info.id;
|
_this->gl_config.dll_handle = (void *) (size_t) info.id;
|
||||||
_this->gl_config.driver_loaded = 1;
|
_this->gl_config.driver_loaded = 1;
|
||||||
SDL_strlcpy(_this->gl_config.driver_path, "libGL.so",
|
SDL_strlcpy(_this->gl_config.driver_path, "libGL.so",
|
||||||
SDL_arraysize(_this->gl_config.driver_path));
|
SDL_arraysize(_this->gl_config.driver_path));
|
||||||
@ -69,7 +69,7 @@ void *BE_GL_GetProcAddress(_THIS, const char *proc)
|
|||||||
void *location = NULL;
|
void *location = NULL;
|
||||||
status_t err;
|
status_t err;
|
||||||
if ((err =
|
if ((err =
|
||||||
get_image_symbol((image_id) _this->gl_config.dll_handle,
|
get_image_symbol((image_id) (size_t) _this->gl_config.dll_handle,
|
||||||
proc, B_SYMBOL_TYPE_ANY,
|
proc, B_SYMBOL_TYPE_ANY,
|
||||||
&location)) == B_OK) {
|
&location)) == B_OK) {
|
||||||
return location;
|
return location;
|
||||||
|
Loading…
Reference in New Issue
Block a user