This commit is contained in:
Branimir Karadžić 2015-08-12 12:24:30 -07:00
parent a70cf430b0
commit 38820fd732
2 changed files with 3 additions and 3 deletions

View file

@ -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) \

View file

@ -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;