Prechádzať zdrojové kódy

Fix longstanding bug with the FPU being forced into single-precision mode on Windows

rdb 16 rokov pred
rodič
commit
b2b32aea5b
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 2 0
      panda/src/windisplay/winDetectDx.h

+ 2 - 0
panda/src/windisplay/winDetectDx.h

@@ -538,6 +538,8 @@ static int get_display_information (DisplaySearchParameters &display_search_para
           else {
             behavior_flags = D3DCREATE_SOFTWARE_VERTEXPROCESSING;
           }
+          // This is important to prevent DirectX from forcing the FPU into single-precision mode.
+          behavior_flags |= D3DCREATE_FPU_PRESERVE;
 
           HRESULT result;