|
 |
Le 13/06/2013 09:09, Le_Forgeron nous fit lire :
> Le 13/06/2013 08:36, LanuHum a écrit :
>> 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!
>>
>
> I would confirm (from another source):
>
> http://www.libsdl.org/docs/html/sdllistmodes.html
>
> Now, what a shitty specification of return: nullptr, -1 or valid pointer.
> On architecture without alignment constraint, that removes two addresses
> from the usable range.
>
And for the best of the standard (so good for the obvious patch):
if ((modes != NULL)&&(-1 != modes))
disp_sdl.cpp:236:33: error: ISO C++ forbids comparison between pointer
and integer
Post a reply to this message
|
 |