diff --git a/gfx/common/d3d11_common.c b/gfx/common/d3d11_common.c index 8cc91ab1c8..3a2c043405 100644 --- a/gfx/common/d3d11_common.c +++ b/gfx/common/d3d11_common.c @@ -70,15 +70,18 @@ void d3d11_init_texture(D3D11Device device, d3d11_texture_t* texture) texture->desc.ArraySize = 1; texture->desc.SampleDesc.Count = 1; texture->desc.SampleDesc.Quality = 0; - texture->desc.BindFlags |= D3D11_BIND_SHADER_RESOURCE; - texture->desc.CPUAccessFlags = + texture->desc.BindFlags |= D3D11_BIND_SHADER_RESOURCE; + texture->desc.CPUAccessFlags = texture->desc.Usage == D3D11_USAGE_DYNAMIC ? D3D11_CPU_ACCESS_WRITE : 0; if (texture->desc.MiscFlags & D3D11_RESOURCE_MISC_GENERATE_MIPS) { + unsigned width, height; + texture->desc.BindFlags |= D3D11_BIND_RENDER_TARGET; - unsigned width = texture->desc.Width >> 5; - unsigned height = texture->desc.Height >> 5; + width = texture->desc.Width >> 5; + height = texture->desc.Height >> 5; + while (width && height) { width >>= 1; diff --git a/qb/config.params.sh b/qb/config.params.sh index 6cbeec3fc6..6a06ebfebb 100644 --- a/qb/config.params.sh +++ b/qb/config.params.sh @@ -37,9 +37,13 @@ HAVE_BUILTINMINIUPNPC=yes # Bake in Mini UPnP client library (for NAT traversal C89_BUILTINMINIUPNPC=no HAVE_D3D8=no # Direct3D 8 support HAVE_D3D9=yes # Direct3D 9 support +C89_D3D9=no HAVE_D3D10=yes # Direct3D 10 support +C89_D3D10=no HAVE_D3D11=yes # Direct3D 11 support +C89_D3D11=no HAVE_D3D12=yes # Direct3D 12 support +C89_D3D12=no HAVE_D3DX=yes # Direct3DX support HAVE_OPENGL=auto # OpenGL support HAVE_MALI_FBDEV=no # Mali fbdev context support