diff --git a/examples/common/entry/entry_windows.cpp b/examples/common/entry/entry_windows.cpp index ce278428..1b3f4f2d 100644 --- a/examples/common/entry/entry_windows.cpp +++ b/examples/common/entry/entry_windows.cpp @@ -23,6 +23,10 @@ # define XINPUT_GAMEPAD_GUIDE 0x400 #endif // XINPUT_GAMEPAD_GUIDE +#ifndef XINPUT_DLL_A +# define XINPUT_DLL_A "xinput.dll" +#endif // XINPUT_DLL_A + namespace entry { typedef DWORD (WINAPI* PFN_XINPUT_GET_STATE)(DWORD dwUserIndex, XINPUT_STATE* pState); diff --git a/src/renderer_d3d9.h b/src/renderer_d3d9.h index 1460725c..e20728b6 100644 --- a/src/renderer_d3d9.h +++ b/src/renderer_d3d9.h @@ -88,6 +88,14 @@ namespace bgfx # define D3DFMT_RAWZ ( (D3DFORMAT)BX_MAKEFOURCC('R', 'A', 'W', 'Z') ) # endif // D3DFMT_RAWZ +# ifndef D3DFMT_S8_LOCKABLE +# define D3DFMT_S8_LOCKABLE ( (D3DFORMAT)85) +# endif // D3DFMT_S8_LOCKABLE + +# ifndef D3DFMT_A1 +# define D3DFMT_A1 ( (D3DFORMAT)118) +# endif // D3DFMT_A1 + struct ExtendedFormat { enum Enum @@ -327,7 +335,7 @@ namespace bgfx void preReset(); void postReset(); - + union { IDirect3DBaseTexture9* m_ptr;