瀏覽代碼

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

rdb 16 年之前
父節點
當前提交
b2b32aea5b
共有 1 個文件被更改,包括 2 次插入0 次删除
  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 {
           else {
             behavior_flags = D3DCREATE_SOFTWARE_VERTEXPROCESSING;
             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;
           HRESULT result;