]> git.cworth.org Git - apitrace-tests/blobdiff - apps/d3d9/tri.cpp
Add a shader d3d9 tri test.
[apitrace-tests] / apps / d3d9 / tri.cpp
index 816673497027b8c9421642139caa8d8047f930d5..8c3fda7baa76e6ae7151837a85903a24ba7afc19 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,