From fd14e7201468663c5a282341315063c5378c7a2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 27 Feb 2016 17:23:47 -0800 Subject: [PATCH] Cleanup. --- src/renderer_d3d11.cpp | 2 +- src/renderer_d3d11.h | 1 - src/renderer_d3d12.cpp | 2 +- src/renderer_d3d12.h | 1 - src/renderer_d3d9.h | 1 - 5 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index aa359084..271cb4df 100644 --- a/src/renderer_d3d11.cpp +++ b/src/renderer_d3d11.cpp @@ -3869,7 +3869,7 @@ BX_PRAGMA_DIAGNOSTIC_POP(); uint16_t shaderSize; bx::read(&reader, shaderSize); - const DWORD* code = (const DWORD*)reader.getDataPtr(); + const void* code = reader.getDataPtr(); bx::skip(&reader, shaderSize+1); if (BGFX_CHUNK_MAGIC_FSH == magic) diff --git a/src/renderer_d3d11.h b/src/renderer_d3d11.h index 280f7f7d..f4a92e4a 100644 --- a/src/renderer_d3d11.h +++ b/src/renderer_d3d11.h @@ -120,7 +120,6 @@ namespace bgfx { namespace d3d11 } void create(const Memory* _mem); - DWORD* getShaderCode(uint8_t _fragmentBit, const Memory* _mem); void destroy() { diff --git a/src/renderer_d3d12.cpp b/src/renderer_d3d12.cpp index e27f2157..1b58dd33 100644 --- a/src/renderer_d3d12.cpp +++ b/src/renderer_d3d12.cpp @@ -3722,7 +3722,7 @@ data.NumQualityLevels = 0; uint16_t shaderSize; bx::read(&reader, shaderSize); - const DWORD* code = (const DWORD*)reader.getDataPtr(); + const void* code = reader.getDataPtr(); bx::skip(&reader, shaderSize+1); m_code = copy(code, shaderSize); diff --git a/src/renderer_d3d12.h b/src/renderer_d3d12.h index 2bd05262..c218dfb7 100644 --- a/src/renderer_d3d12.h +++ b/src/renderer_d3d12.h @@ -183,7 +183,6 @@ namespace bgfx { namespace d3d12 } void create(const Memory* _mem); - DWORD* getShaderCode(uint8_t _fragmentBit, const Memory* _mem); void destroy() { diff --git a/src/renderer_d3d9.h b/src/renderer_d3d9.h index 8b6a2b64..e93022ae 100644 --- a/src/renderer_d3d9.h +++ b/src/renderer_d3d9.h @@ -236,7 +236,6 @@ namespace bgfx { namespace d3d9 } void create(const Memory* _mem); - DWORD* getShaderCode(uint8_t _fragmentBit, const Memory* _mem); void destroy() {