src/video/x11/SDL_x11opengl.c
changeset 8967 8ca9ce569f65
parent 8804 a941cf4234c4
child 9330 26eb20aad02f
equal deleted inserted replaced
8966:5771ab3290d6 8967:8ca9ce569f65
   547     char x11_error_locale[256];
   547     char x11_error_locale[256];
   548 
   548 
   549     errorCode = e->error_code;
   549     errorCode = e->error_code;
   550     if (X11_XGetErrorText(d, errorCode, x11_error_locale, sizeof(x11_error_locale)) == Success)
   550     if (X11_XGetErrorText(d, errorCode, x11_error_locale, sizeof(x11_error_locale)) == Success)
   551     {
   551     {
   552         x11_error = SDL_iconv_string("UTF-8", "", x11_error_locale, strlen(x11_error_locale));
   552         x11_error = SDL_iconv_string("UTF-8", "", x11_error_locale, SDL_strlen(x11_error_locale)+1);
   553     }
   553     }
   554 
   554 
   555     if (x11_error)
   555     if (x11_error)
   556     {
   556     {
   557         SDL_SetError("Could not create GL context: %s", x11_error);
   557         SDL_SetError("Could not create GL context: %s", x11_error);