diff --git a/panda/src/dxgsg/dxGraphicsStateGuardian.cxx b/panda/src/dxgsg/dxGraphicsStateGuardian.cxx index 6a05a3b4bb..035497eb7c 100644 --- a/panda/src/dxgsg/dxGraphicsStateGuardian.cxx +++ b/panda/src/dxgsg/dxGraphicsStateGuardian.cxx @@ -158,7 +158,7 @@ Colorf_to_D3DCOLOR(const Colorf &cColorf) { push ecx mov ecx, cColorf fild tempcolorval - fld [ecx] + fld DWORD PTR [ecx] fmul ST(0),ST(1) fistp tempcolorval ; no way to store directly to int register mov eax, tempcolorval