|
 |
Le 13/06/2013 08:36, LanuHum nous fit lire :
> Hi,
>
> I don't speak English!
>
> Povray in Linux: segmentation fault, if start Povray in Blender or Eclipse, if
> enable window.
> Our people found a problem, but don't speak English too.
> In 3.7.0.RC7 file unix/disp_sdl.cpp
> line 235 SDL_Rect **modes = SDL_ListModes(NULL, SDL_FULLSCREEN);
>
> the call of the SDL_ListModes function returns -1 when povray is started from a
> blender
> it is necessary to make check on -1
> as SDL_ListModes can return -1
> http://sdl.beuc.net/sdl.wiki/SDL_ListModes
>
> Correct, please!
>
Your fix is :
if ((modes != NULL)&&(reinterpret_cast<SDL_Rect**>(-1) != modes))
instead of :
if (modes != NULL)
Post a reply to this message
|
 |