[WINED3D] Yield CPU to the scheduler in wined3d_pause. CORE-14637 CORE-14534

Much like the previous commit, this is a workaround for our buggy Win32k.
This commit is contained in:
Thomas Faber 2018-08-19 13:28:06 +02:00
parent adfbefde2b
commit c97e9defc1
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -370,9 +370,13 @@ static inline unsigned int wined3d_popcount(unsigned int x)
static inline void wined3d_pause(void)
{
#ifdef __REACTOS__
Sleep(0);
#else
#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
__asm__ __volatile__( "rep;nop" : : : "memory" );
#endif
#endif
}
#define ORM_BACKBUFFER 0