Răsfoiți Sursa

fix bad asm stmt

cxgeorge 24 ani în urmă
părinte
comite
3afe0b9d39
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      panda/src/dxgsg/dxGraphicsStateGuardian.cxx

+ 1 - 1
panda/src/dxgsg/dxGraphicsStateGuardian.cxx

@@ -158,7 +158,7 @@ Colorf_to_D3DCOLOR(const Colorf &cColorf) {
         push ecx
         push ecx
         mov ecx, cColorf
         mov ecx, cColorf
         fild tempcolorval
         fild tempcolorval
-        fld [ecx]
+        fld DWORD PTR [ecx]
         fmul ST(0),ST(1)
         fmul ST(0),ST(1)
         fistp tempcolorval  ; no way to store directly to int register
         fistp tempcolorval  ; no way to store directly to int register
         mov eax, tempcolorval
         mov eax, tempcolorval