POV-Ray : Newsgroups : povray.programming : Warning! Error in source Povray-3.7 : Re: Warning! Error in source Povray-3.7 Server Time
18 Apr 2024 19:31:11 EDT (-0400)
  Re: Warning! Error in source Povray-3.7  
From: Le Forgeron
Date: 13 Jun 2013 16:27:45
Message: <51ba2b41$1@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.