Fix D3D8, D3D9, and GL builds. Bug swiftshader:63 Bug swiftshader:31 Change-Id: I59d08cbc8379e2c30984b9ec0ed4d49317633ce8 Reviewed-on: https://swiftshader-review.googlesource.com/10048 Tested-by: Nicolas Capens <capn@google.com> Reviewed-by: Nicolas Capens <capn@google.com>
diff --git a/src/D3D8/Direct3DIndexBuffer8.hpp b/src/D3D8/Direct3DIndexBuffer8.hpp index 8b241ab..cf141d7 100644 --- a/src/D3D8/Direct3DIndexBuffer8.hpp +++ b/src/D3D8/Direct3DIndexBuffer8.hpp
@@ -31,28 +31,28 @@ public: Direct3DIndexBuffer8(Direct3DDevice8 *device, unsigned int length, unsigned long usage, D3DFORMAT format, D3DPOOL pool); - virtual ~Direct3DIndexBuffer8(); + ~Direct3DIndexBuffer8() override; // IUnknown methods - long __stdcall QueryInterface(const IID &iid, void **object); - unsigned long __stdcall AddRef(); - unsigned long __stdcall Release(); + long __stdcall QueryInterface(const IID &iid, void **object) override; + unsigned long __stdcall AddRef() override; + unsigned long __stdcall Release() override; // IDirect3DResource8 methods - long __stdcall FreePrivateData(const GUID &guid); - long __stdcall GetPrivateData(const GUID &guid, void *data, unsigned long *size); - void __stdcall PreLoad(); - long __stdcall SetPrivateData(const GUID &guid, const void *data, unsigned long size, unsigned long flags); - long __stdcall GetDevice(IDirect3DDevice8 **device); - unsigned long __stdcall SetPriority(unsigned long newPriority); - unsigned long __stdcall GetPriority(); - D3DRESOURCETYPE __stdcall GetType(); + long __stdcall FreePrivateData(const GUID &guid) override; + long __stdcall GetPrivateData(const GUID &guid, void *data, unsigned long *size) override; + void __stdcall PreLoad() override; + long __stdcall SetPrivateData(const GUID &guid, const void *data, unsigned long size, unsigned long flags) override; + long __stdcall GetDevice(IDirect3DDevice8 **device) override; + unsigned long __stdcall SetPriority(unsigned long newPriority) override; + unsigned long __stdcall GetPriority() override; + D3DRESOURCETYPE __stdcall GetType() override; // IDirect3DIndexBuffer8 methods - long __stdcall GetDesc(D3DINDEXBUFFER_DESC *description); - long __stdcall Lock(unsigned int offset, unsigned int size, unsigned char **data, unsigned long flags); - long __stdcall Unlock(); - + long __stdcall GetDesc(D3DINDEXBUFFER_DESC *description) override; + long __stdcall Lock(unsigned int offset, unsigned int size, unsigned char **data, unsigned long flags) override; + long __stdcall Unlock() override; + // Internal methods sw::Resource *getResource() const; bool is32Bit() const;