Author: cfinck
Date: Sun Nov 2 15:57:04 2008
New Revision: 37156
URL:
http://svn.reactos.org/svn/reactos?rev=37156&view=rev
Log:
Kamil Hornicek
- Mesa Hack to get Unreal Tournament '99 - 2004 to work with OpenGL Software
Rendering
Modified:
branches/ros-branch-0_3_7/reactos/dll/3rdparty/mesa32/src/x86/common_x86.c
Modified: branches/ros-branch-0_3_7/reactos/dll/3rdparty/mesa32/src/x86/common_x86.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-branch-0_3_7/reactos/dll/3r…
==============================================================================
--- branches/ros-branch-0_3_7/reactos/dll/3rdparty/mesa32/src/x86/common_x86.c
[iso-8859-1] (original)
+++ branches/ros-branch-0_3_7/reactos/dll/3rdparty/mesa32/src/x86/common_x86.c
[iso-8859-1] Sun Nov 2 15:57:04 2008
@@ -140,11 +140,9 @@
_mesa_x86_cpu_features &= ~(X86_FEATURE_XMM);
}
#elif defined(WIN32)
- LPTOP_LEVEL_EXCEPTION_FILTER oldFilter;
-
/* Install our ExceptionFilter */
- oldFilter = SetUnhandledExceptionFilter( ExceptionFilter );
-
+ AddVectoredExceptionHandler( 1, ExceptionFilter );
+
if ( cpu_has_xmm ) {
_mesa_debug(NULL, "Testing OS support for SSE...\n");
@@ -169,8 +167,7 @@
}
}
- /* Restore previous exception filter */
- SetUnhandledExceptionFilter( oldFilter );
+ RemoveVectoredExceptionHandler( ExceptionFilter );
if ( cpu_has_xmm ) {
_mesa_debug(NULL, "Tests of OS support for SSE passed.\n");
@@ -312,3 +309,4 @@
#endif
}
+