]> git.cworth.org Git - apitrace-tests/blobdiff - apps/d3d9/tri.cpp
Add d3d8 scnapshot. Be consistent with swapeffect.
[apitrace-tests] / apps / d3d9 / tri.cpp
index 816673497027b8c9421642139caa8d8047f930d5..6cf6284a22d6d551f6270556b315e0beb5c1c144 100644 (file)
@@ -34,11 +34,13 @@ static IDirect3DDevice9 * g_pDevice = NULL;
 static D3DPRESENT_PARAMETERS g_PresentationParameters;
 
 
-int WINAPI
-WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR pCmdLine, int nCmdShow)
+int
+main(int argc, char *argv[])
 {
     HRESULT hr;
 
+    HINSTANCE hInstance = GetModuleHandle(NULL);
+
     WNDCLASSEX wc = {
         sizeof(WNDCLASSEX),
         CS_CLASSDC,
@@ -106,7 +108,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR pCmdLine, int nCmdSh
         g_PresentationParameters.BackBufferHeight = WindowHeight;
     }
     g_PresentationParameters.BackBufferCount = 1;
-    g_PresentationParameters.SwapEffect = D3DSWAPEFFECT_FLIP;
+    g_PresentationParameters.SwapEffect = D3DSWAPEFFECT_DISCARD;
     if (!Windowed) {
         g_PresentationParameters.BackBufferFormat = D3DFMT_X8R8G8B8;
     } else {