Browse Source

changes for linux build

Kolja Strohm 2 years ago
parent
commit
2b7fc662ce
2 changed files with 2 additions and 0 deletions
  1. BIN
      Framework Tests/Framwork.dll
  2. 2 0
      Textur.cpp

BIN
Framework Tests/Framwork.dll


+ 2 - 0
Textur.cpp

@@ -184,6 +184,7 @@ void DX11Textur::setRenderTarget( bool rt )
 //! copy the texture to an image
 void DX11Textur::copyToImage( Bild* zB )
 {
+#ifdef WIN32
     D3D11_TEXTURE2D_DESC tempBufferDesc;
     memset( &tempBufferDesc, 0, sizeof( D3D11_TEXTURE2D_DESC ) );
     tempBufferDesc.ArraySize = 1;
@@ -216,4 +217,5 @@ void DX11Textur::copyToImage( Bild* zB )
     }
     context->Unmap( tmpTxt, 0 );
     tmpTxt->Release();
+#endif
 }