Skip to content

Commit

Permalink
haiku: Patched SDL_bopengl.cc to compile on x86-64 Haiku.
Browse files Browse the repository at this point in the history
Fixes Bugzilla #3729.
  • Loading branch information
icculus committed Aug 9, 2017
1 parent d5215d9 commit a412ba0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/haiku/SDL_bopengl.cc
Expand Up @@ -54,7 +54,7 @@ int BE_GL_LoadLibrary(_THIS, const char *path)
if( get_image_symbol(info.id, "glBegin", B_SYMBOL_TYPE_ANY,
&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;
SDL_strlcpy(_this->gl_config.driver_path, "libGL.so",
SDL_arraysize(_this->gl_config.driver_path));
Expand All @@ -69,7 +69,7 @@ void *BE_GL_GetProcAddress(_THIS, const char *proc)
void *location = NULL;
status_t 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,
&location)) == B_OK) {
return location;
Expand Down

0 comments on commit a412ba0

Please sign in to comment.