diff Engine/MMT.cpp @ 2518:3a1b56ab8749

d3d11 accepts RGBTexture
author a.parshin
date Thu, 09 Oct 2014 00:06:47 +0300
parents fb1c61a82a55
children b36b858a5175
line wrap: on
line diff
--- a/Engine/MMT.cpp	Wed Oct 08 22:32:54 2014 +0600
+++ b/Engine/MMT.cpp	Thu Oct 09 00:06:47 2014 +0300
@@ -57,24 +57,22 @@
       }
     }
   }
-  char pContainerName[64];
 
   if (use_MMT)
-  {
-    sprintf(pContainerName, "data\\New_Icons/%s", "MMTTITLE.pcx");
-    tex.LoadPCXFile(pContainerName, 0);
-  }
+    tex.LoadPCXFile("data/New_Icons/MMTTITLE.pcx", 0);
   else
     tex.Load("mm6title.pcx", 2);
 
   pRenderer->BeginScene();
-  pRenderer->DrawTextureRGB(0, 0, &tex);
-  free(tex.pPixels);
-  tex.pPixels = 0;
+  pRenderer->DrawTextureNew(0, 0, &tex);
+  Sleep(5000);
+
+  tex.Release();
+
   MainMenuUI_LoadFontsAndSomeStuff();
 
   if (use_MMT)
-    DrawMMTCopyrightWindow();//Text message in ÌÌÒ menu
+    DrawMMTCopyrightWindow();
   else
     DrawMM7CopyrightWindow();