فهرست منبع

Fixed DX11 resize

Marko Pintera 12 سال پیش
والد
کامیت
1c77359dc5
2فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 2 2
      CamelotClient/CamelotClient.cpp
  2. 3 0
      CamelotD3D11RenderSystem/Source/CmD3D11RenderWindow.cpp

+ 2 - 2
CamelotClient/CamelotClient.cpp

@@ -30,9 +30,9 @@
 #include "CmRTTIType.h"
 #include "CmCursor.h"
 
-//#define DX11
+#define DX11
 //#define DX9
-#define GL
+//#define GL
 
 using namespace CamelotFramework;
 using namespace BansheeEditor;

+ 3 - 0
CamelotD3D11RenderSystem/Source/CmD3D11RenderWindow.cpp

@@ -693,6 +693,9 @@ namespace CamelotFramework
 		D3D11_TEXTURE2D_DESC BBDesc;
 		mBackBuffer->GetDesc(&BBDesc);
 
+		mWidth = BBDesc.Width;
+		mHeight = BBDesc.Height;
+
 		// create the render target view
 		D3D11_RENDER_TARGET_VIEW_DESC RTVDesc;
 		ZeroMemory( &RTVDesc, sizeof(RTVDesc) );