From 38820fd732703232357dd64c17961d6edf9d099d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Wed, 12 Aug 2015 12:24:30 -0700 Subject: [PATCH] Cleanup. --- src/bgfx_compute.sh | 4 ++-- src/renderer_d3d11.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bgfx_compute.sh b/src/bgfx_compute.sh index 312e4ba9..b242d8e0 100644 --- a/src/bgfx_compute.sh +++ b/src/bgfx_compute.sh @@ -73,7 +73,7 @@ vec2 unpackHalf2x16(uint _x) #define __IMAGE_IMPL(_textureType, _storeComponents, _type, _loadComponents) \ _type imageLoad(Texture2D<_textureType> _image, ivec2 _uv) \ { \ - return _image[_uv]._loadComponents; \ + return _image.mips[0][_uv]._loadComponents; \ } \ \ void imageStore(RWTexture2D<_textureType> _image, ivec2 _uv, _type _value) \ @@ -83,7 +83,7 @@ vec2 unpackHalf2x16(uint _x) \ _type imageLoad(Texture3D<_textureType> _image, ivec3 _uv) \ { \ - return _image[_uv]._loadComponents; \ + return _image.mips[0][_uv]._loadComponents; \ } \ \ void imageStore(RWTexture3D<_textureType> _image, ivec3 _uv, _type _value) \ diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index 8266e495..e33fcb31 100644 --- a/src/renderer_d3d11.cpp +++ b/src/renderer_d3d11.cpp @@ -2691,7 +2691,7 @@ BX_PRAGMA_DIAGNOSTIC_POP(); ProgramD3D11& program = m_program[_clearQuad.m_program[numMrt-1].idx]; m_currentProgram = &program; deviceCtx->VSSetShader(program.m_vsh->m_vertexShader, NULL, 0); - deviceCtx->VSSetConstantBuffers(0, 0, NULL); + deviceCtx->VSSetConstantBuffers(0, 1, s_zero.m_buffer); if (NULL != m_currentColor) { const ShaderD3D11* fsh = program.m_fsh;