Mercurial > mm7
diff Engine/Graphics/RenderD3D11.cpp @ 2506:9b96a51011fb
for sound
author | Ritor1 |
---|---|
date | Thu, 25 Sep 2014 10:39:49 +0600 |
parents | 68cdef6879a0 |
children | 491f0babd563 |
line wrap: on
line diff
--- a/Engine/Graphics/RenderD3D11.cpp Fri Sep 19 18:03:18 2014 +0600 +++ b/Engine/Graphics/RenderD3D11.cpp Thu Sep 25 10:39:49 2014 +0600 @@ -1,4 +1,4 @@ -#include <d3dcompiler.h> +/*#include <d3dcompiler.h> #include <comdef.h> // _com_error #include "../ErrorHandling.h" @@ -231,7 +231,7 @@ unsigned int device_flags = 0;//D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT; #ifndef NODEBUG - device_flags |= 0/*D3D11_CREATE_DEVICE_DEBUG | D3D11_CREATE_DEVICE_DEBUGGABLE*/; + device_flags |= 0*//*D3D11_CREATE_DEVICE_DEBUG | D3D11_CREATE_DEVICE_DEBUGGABLE*//*; #endif HRESULT (__stdcall *dll_D3D11CreateDeviceAndSwapChain)(IDXGIAdapter* pAdapter, D3D_DRIVER_TYPE DriverType, HMODULE Software, UINT Flags, CONST D3D_FEATURE_LEVEL* pFeatureLevels, UINT FeatureLevels, UINT SDKVersion, CONST DXGI_SWAP_CHAIN_DESC* pSwapChainDesc, IDXGISwapChain** ppSwapChain, ID3D11Device** ppDevice, D3D_FEATURE_LEVEL* pFeatureLevel, ID3D11DeviceContext** ppImmediateContext); @@ -242,7 +242,7 @@ { MessageBoxA(nullptr, "Received Direct3D 9 or lower", "", 0); __debugbreak(); - } + }*/ /*if (fullscreen) { extern void ChangeResolution(int new_dith, int new_height, int new_bpp); @@ -253,7 +253,7 @@ } ErrorD3D(pSwapChain->SetFullscreenState(fullscreen, nullptr));*/ - + /* ID3D11Texture2D *pSwapChainSurface; { ErrorD3D(pSwapChain->GetBuffer(0, __uuidof(ID3D11Texture2D), (void **)&pSwapChainSurface)); @@ -322,4 +322,4 @@ d3dc->RSSetViewports(1, &viewport); return true; -} \ No newline at end of file +}*/ \ No newline at end of file