haiku: Patched SDL_bopengl.cc to compile on x86-64 Haiku.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 09 Aug 2017 01:01:41 -0400
changeset 11199714324c6dd1f
parent 11198 2b4146f70a85
child 11200 8bcc1cc9ac4c
haiku: Patched SDL_bopengl.cc to compile on x86-64 Haiku.

Fixes Bugzilla #3729.
src/video/haiku/SDL_bopengl.cc
     1.1 --- a/src/video/haiku/SDL_bopengl.cc	Wed Aug 09 00:56:05 2017 -0400
     1.2 +++ b/src/video/haiku/SDL_bopengl.cc	Wed Aug 09 01:01:41 2017 -0400
     1.3 @@ -54,7 +54,7 @@
     1.4          if( get_image_symbol(info.id, "glBegin", B_SYMBOL_TYPE_ANY,
     1.5                  &location) == B_OK) {
     1.6  
     1.7 -            _this->gl_config.dll_handle = (void *) info.id;
     1.8 +            _this->gl_config.dll_handle = (void *) (size_t) info.id;
     1.9              _this->gl_config.driver_loaded = 1;
    1.10              SDL_strlcpy(_this->gl_config.driver_path, "libGL.so",
    1.11                      SDL_arraysize(_this->gl_config.driver_path));
    1.12 @@ -69,7 +69,7 @@
    1.13          void *location = NULL;
    1.14          status_t err;
    1.15          if ((err =
    1.16 -            get_image_symbol((image_id) _this->gl_config.dll_handle,
    1.17 +            get_image_symbol((image_id) (size_t) _this->gl_config.dll_handle,
    1.18                                proc, B_SYMBOL_TYPE_ANY,
    1.19                                &location)) == B_OK) {
    1.20              return location;