GL_PROJECTION crashes my app

Operating System: Win98
Compiler: BCC 5.5
SDL Version: 1.2.0:

Help!

When I try to set up the projection matrix in OpenGL my application
crashes…

Has anyone been through this before???

thanks in advance,

Problem solved!!!

I had to include:

#include <float.h>

and then call the following function:

_control87(MCW_EM, MCW_EM);

that is because i’m using Borland Compilers and OpenGL…

But now I wonder: Why this is not included within SDL???

luck,

Mauricio Franco.

“Mauricio Franco” <@Mauricio_Franco> escribi? en el mensaje
news:ar76e3$l0b$1 at hoth.stenstad.net…> Operating System: Win98

Compiler: BCC 5.5
SDL Version: 1.2.0:

Help!

When I try to set up the projection matrix in OpenGL my application
crashes…

Has anyone been through this before???

thanks in advance,

Most likely because it’s a compiler specific thing. Certain
optimizations with certain versions of gcc can cause crashes and other
similar behavior as well. SDL can’t account for all of them
unfortunately.On Sun, 2002-11-17 at 20:24, Mauricio Franco wrote:

Problem solved!!!

I had to include:

#include <float.h>

and then call the following function:

_control87(MCW_EM, MCW_EM);

that is because i’m using Borland Compilers and OpenGL…

But now I wonder: Why this is not included within SDL???

If it was OpenGL function that needed those then that compiler should
have them in it GL/GL.h include file, which SDL_opengl.h (Don’t
remember if I wrote it correctly) includes.On Monday 18 November 2002 08:09, DrEvil wrote:

On Sun, 2002-11-17 at 20:24, Mauricio Franco wrote:

Problem solved!!!

I had to include:

#include <float.h>

and then call the following function:

_control87(MCW_EM, MCW_EM);

that is because i’m using Borland Compilers and OpenGL…

But now I wonder: Why this is not included within SDL???

Most likely because it’s a compiler specific thing. Certain
optimizations with certain versions of gcc can cause crashes and
other similar behavior as well. SDL can’t account for all of them
unfortunately.