(C89) Don't build D3D9/10/11/12
This commit is contained in:
parent
c830d0273d
commit
f364d2d3ec
2 changed files with 11 additions and 4 deletions
|
@ -70,15 +70,18 @@ void d3d11_init_texture(D3D11Device device, d3d11_texture_t* texture)
|
||||||
texture->desc.ArraySize = 1;
|
texture->desc.ArraySize = 1;
|
||||||
texture->desc.SampleDesc.Count = 1;
|
texture->desc.SampleDesc.Count = 1;
|
||||||
texture->desc.SampleDesc.Quality = 0;
|
texture->desc.SampleDesc.Quality = 0;
|
||||||
texture->desc.BindFlags |= D3D11_BIND_SHADER_RESOURCE;
|
texture->desc.BindFlags |= D3D11_BIND_SHADER_RESOURCE;
|
||||||
texture->desc.CPUAccessFlags =
|
texture->desc.CPUAccessFlags =
|
||||||
texture->desc.Usage == D3D11_USAGE_DYNAMIC ? D3D11_CPU_ACCESS_WRITE : 0;
|
texture->desc.Usage == D3D11_USAGE_DYNAMIC ? D3D11_CPU_ACCESS_WRITE : 0;
|
||||||
|
|
||||||
if (texture->desc.MiscFlags & D3D11_RESOURCE_MISC_GENERATE_MIPS)
|
if (texture->desc.MiscFlags & D3D11_RESOURCE_MISC_GENERATE_MIPS)
|
||||||
{
|
{
|
||||||
|
unsigned width, height;
|
||||||
|
|
||||||
texture->desc.BindFlags |= D3D11_BIND_RENDER_TARGET;
|
texture->desc.BindFlags |= D3D11_BIND_RENDER_TARGET;
|
||||||
unsigned width = texture->desc.Width >> 5;
|
width = texture->desc.Width >> 5;
|
||||||
unsigned height = texture->desc.Height >> 5;
|
height = texture->desc.Height >> 5;
|
||||||
|
|
||||||
while (width && height)
|
while (width && height)
|
||||||
{
|
{
|
||||||
width >>= 1;
|
width >>= 1;
|
||||||
|
|
|
@ -37,9 +37,13 @@ HAVE_BUILTINMINIUPNPC=yes # Bake in Mini UPnP client library (for NAT traversal
|
||||||
C89_BUILTINMINIUPNPC=no
|
C89_BUILTINMINIUPNPC=no
|
||||||
HAVE_D3D8=no # Direct3D 8 support
|
HAVE_D3D8=no # Direct3D 8 support
|
||||||
HAVE_D3D9=yes # Direct3D 9 support
|
HAVE_D3D9=yes # Direct3D 9 support
|
||||||
|
C89_D3D9=no
|
||||||
HAVE_D3D10=yes # Direct3D 10 support
|
HAVE_D3D10=yes # Direct3D 10 support
|
||||||
|
C89_D3D10=no
|
||||||
HAVE_D3D11=yes # Direct3D 11 support
|
HAVE_D3D11=yes # Direct3D 11 support
|
||||||
|
C89_D3D11=no
|
||||||
HAVE_D3D12=yes # Direct3D 12 support
|
HAVE_D3D12=yes # Direct3D 12 support
|
||||||
|
C89_D3D12=no
|
||||||
HAVE_D3DX=yes # Direct3DX support
|
HAVE_D3DX=yes # Direct3DX support
|
||||||
HAVE_OPENGL=auto # OpenGL support
|
HAVE_OPENGL=auto # OpenGL support
|
||||||
HAVE_MALI_FBDEV=no # Mali fbdev context support
|
HAVE_MALI_FBDEV=no # Mali fbdev context support
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue