mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 04:29:20 +02:00
* use math.setexceptionmask so the sse cw is also modified (needed at
least for darwin/x86_64) git-svn-id: trunk@9628 -
This commit is contained in:
parent
2b1f7a257a
commit
93eb99dd38
@ -1573,6 +1573,11 @@ procedure FreeOpenGL;
|
||||
|
||||
implementation
|
||||
|
||||
{$if defined(cpui386) or defined(cpux86_64)}
|
||||
uses
|
||||
math;
|
||||
{$endif}
|
||||
|
||||
{$ifdef windows}
|
||||
function WinChoosePixelFormat(DC: HDC; p2: PPixelFormatDescriptor): Integer; extdecl; external 'gdi32' name 'ChoosePixelFormat';
|
||||
{$endif}
|
||||
@ -2315,9 +2320,10 @@ initialization
|
||||
|
||||
{ according to bug 7570, this is necessary on all x86 platforms,
|
||||
maybe we've to fix the sse control word as well }
|
||||
{ Yes, at least for darwin/x86_64 (JM) }
|
||||
{$if defined(cpui386) or defined(cpux86_64)}
|
||||
Set8087CW($133F);
|
||||
{$endif x86}
|
||||
SetExceptionMask([exInvalidOp, exDenormalized, exZeroDivide,exOverflow, exUnderflow, exPrecision]);
|
||||
{$endif}
|
||||
|
||||
{$IFDEF Windows}
|
||||
LoadOpenGL('opengl32.dll');
|
||||
|
Loading…
Reference in New Issue
Block a user