src/video/haiku/SDL_bopengl.cc
changeset 11199 714324c6dd1f
parent 11130 898db1eb3e3a
child 11811 5d94cb6b24d3
     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;