{ 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)}
SetExceptionMask([exInvalidOp, exDenormalized, exZeroDivide,exOverflow, exUnderflow, exPrecision]);
{$endif}
{$if defined(cpui386) or defined(cpux86_64)}
uses
math;
{$endif}
vec4 IBump = texture2D(normalMap, gl_TexCoord[0].st);
if (Desired = ifATI2N) and not (Caps.ATI3DcCompression or Caps.LATCCompression) then
Desired := ifA8Gray8;
if (Desired = ifATI2N) and (Caps.ATI3DcCompression or Caps.LATCCompression) then
Desired := ifA8Gray8;
fstps (%edx) <- debugger says it crashes here
mov 0x10(%eax),%ecx
test %ecx,%ecx
jbe 0x262d03c <atioglxx!atiPPHSN+1576764>
GLInternal := GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT;
if not Caps.LATCCompression and Caps.ATI3DcCompression then
GLInternal := GL_COMPRESSED_LUMINANCE_ALPHA_3DC_ATI;
Page created in 0.011 seconds with 19 queries.